Wiki

Sorted by ratingX
Displaying 501-510 of 784 result(s).

How to change Migration Table name and use defined prefix.

Created 4 years ago by JorgeeHow-tos1 comment – viewed 10,491 times – ( +3 ) – version 1.1
To accomplish the task of changing Migration table's name, by default tbl_migration, you need to add the following in your ./protected/config/console.php.

Expert's model generation with Gii

Created 2 years ago by le_topTips0 comments – viewed 8,279 times – ( +3 ) – version 1.1
Efficient coding with Yii implies efficient use of the code generator. This article shares the personalised Gii templates that were built starting from the standard templates proposed by AweGen.

Profiling using XDebug

Created 3 years ago by le_topHow-tos1 comment – viewed 10,501 times – ( +3 ) – version all
A short explication on how to extract profile information for PHP on your server using XDebug and KCacheGrind or WinCacheGrind.

Role Management

Created 2 years ago by Dency G BHow-tos0 comments – viewed 10,790 times – ( +3 ) – version 2.0
Implementing a role based access control is a very easy process and you can even load your roles from the database if you want.
tags: rbac, yii2

Configuring CWebLogRoute for DB profiling

Created 5 years ago by Igor IvanovicTutorials1 comment – viewed 24,766 times – ( +3 ) – version 1.1
/index.php /protected/config/main.php
tags: logger, profiler, db

Behaviour for Time Zone and Format conversion for Date, Time, timestamp, and datetime

Created 2 years ago by SmitheshHow-tos1 comment – viewed 8,998 times – ( +3 ) – version 1.1
This Behaviour helps to view time/date/timestamp/datetime from db to local Date / Time / Date Time format and in local Timezone. And save into db in with db timezone and db format. You only need to include this behaviour in models where need this facility.

Inline views, write less

Created 3 years ago by FirebreakerTips0 comments – viewed 6,295 times – ( +3 )
Sometimes writing views like

Moving the vendor directory for multiple projects

Created 2 years ago by mariosimaremareHow-tos2 comments – viewed 12,254 times – ( +5 / -1 ) – version 2.0
This How-To is useful if you are planning to move the Yii vendor directory outside the default location.

Customizing the CMenu Widget

Created 3 years ago by mistrybTips1 comment – viewed 49,644 times – ( +5 / -1 ) – version 1.1
The CMenu class provides some useful features for generating menus in your web application.

How to access a component of a module from within the module itself

Created 8 years ago by OriginalCopyTutorials3 comments – viewed 37,914 times – ( +5 / -1 ) – version 1.1
The Yii documentation states:
tags: module