Wiki

Sorted by ratingX
Displaying 481-490 of 751 result(s).

Make the authentication more securely

Created about a year ago by Kostas Apazidis (KonApaz)Tutorials1 comment – viewed 3,718 times – ( +3 ) – version 1.1
Suppose a hacker has an account of your website He could set the PHPSESSID to empty After of that He login in your system The PHPSESSID remains blank and user has already logged with this session

Adding a link to a CDataColumn

Created 2 years ago by le_topTips6 comments – viewed 11,372 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 2 years ago by hiral darjiTips1 comment – viewed 6,353 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 2 years ago by br0skHow-tos9 comments – viewed 19,583 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 2 years ago by JorgeeHow-tos1 comment – viewed 7,269 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 11 months ago by le_topTips0 comments – viewed 5,107 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 2 years ago by le_topHow-tos1 comment – viewed 7,262 times – ( +3 ) – version all
A short explication on how to extract profile information for PHP on your server using XDebug and KCacheGrind or WinCacheGrind.

Configuring CWebLogRoute for DB profiling

Created 3 years ago by Igor IvanovicTutorials1 comment – viewed 19,270 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 9 months ago by yiqing95Tips0 comments – viewed 2,731 times – ( +3 ) – version 2.0
this is my way for embed js code block in view file:

Inline views, write less

Created 2 years ago by FirebreakerTips0 comments – viewed 4,656 times – ( +3 )
Sometimes writing views like