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

Handling recursive deletion in Yii

Created 2 years ago by JamesBarnsleyHow-tos3 comments – viewed 8,226 times – ( +3 ) – version 1.1
As a lead developer at Mutable Labs I was tasked to find a way to do recursive deletion in Yii. As I asked other developers and looked around the internet the usual answers all came up, use a plugin or use cascade delete at the DB level, but I did not want to do either of these.

A simple action for XUpload extension

Created 4 years ago by tydeas_drTips1 comment – viewed 14,275 times – ( +3 ) – version 1.1
All the basic functionality for an action used by the xupload extension. Check resources for the source code of this action
tags: tips, xupload, caction

Book Has Author - Many to Many relations using Kartik\Select2

Created about a year ago by thiagoc7How-tos2 comments – viewed 8,320 times – ( +3 ) – version 2.0
I could make this work following same useful tips from this post.

Make the authentication more securely

Created about a year ago by Kostas Apazidis (KonApaz)Tutorials1 comment – viewed 4,199 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 12,187 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.


Created 2 years ago by hiral darjiTips1 comment – viewed 6,629 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 24,914 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,790 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 5,662 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,799 times – ( +3 ) – version all
A short explication on how to extract profile information for PHP on your server using XDebug and KCacheGrind or WinCacheGrind.