Wiki

Sorted by ratingX
Displaying 491-500 of 771 result(s).

Adding a link to a CDataColumn

Created 3 years ago by le_topTips6 comments – viewed 14,400 times – ( +3 ) – version 1.1
Backoffice Grid Views often list information like Posts for a blog while showing at the same time linked information like the User who wrote that post. For more efficiency, it is appropriate that the User is displayed as a link to the User detail page.

CjuiDatepicker

Created 3 years ago by hiral darjiTips1 comment – viewed 7,170 times – ( +3 ) – version 1.1
If you have two datepicker in one form and you want that a date of from date shold be minimum date of todate then put following code in Cjuidatepicker widget options array:

How to use the official Yii installer for Composer (**DEPRECATED**)

Created 3 years ago by br0skHow-tos9 comments – viewed 35,470 times – ( +3 ) – version 1.1
This wiki shall be considered deprecated since the Yii installer for composer has been discontinued.

How to change Migration Table name and use defined prefix.

Created 3 years ago by JorgeeHow-tos1 comment – viewed 9,297 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 about a year ago by le_topTips0 comments – viewed 6,936 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 9,210 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 about a year ago by Dency G BHow-tos0 comments – viewed 8,841 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 4 years ago by Igor IvanovicTutorials1 comment – viewed 22,466 times – ( +3 ) – version 1.1
/index.php /protected/config/main.php
tags: logger, profiler, db

embedded javascript block in your view with IDE checking or intellisense

Created about a year ago by yiqing95Tips0 comments – viewed 3,972 times – ( +3 ) – version 2.0
this is my way for embed js code block in view file:

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

Created about a year ago by SmitheshHow-tos1 comment – viewed 6,938 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.