Wiki

Sorted by viewsX
Displaying 401-410 of 704 result(s).

Get 'source' data from the database - for TbEditableColumn or EditableColumn ('type'=>'select' / dropdownlist)

Created about a year ago by Gerhard LiebenbergHow-tos0 comments – viewed 10,305 times – ( +4 / -1 ) – version 1.1
If you want to edit data directly in the gridview in a 'dropdownlist' style, then you could use the 'type' => 'select' option of TbEditableColumn (YiiBooster) or EditableColumn (x-editable for Yii). This wiki shows how to get data from the db for the 'dropdownlist', by converting AR model data into an array that is passed in json format.

"safe" and "unsafe" Model validators (massive assignments)

Created about a year ago by KonApazHow-tos4 comments – viewed 10,258 times – ( +4 / -6 )
Ok, it is a little bit difficult to full understanding the unsafe validator.

Using Google Maps in Yii Applications via Jquery

Created about a year ago by bluyellHow-tos2 comments – viewed 10,191 times – ( +2 / -1 ) – version 1.1

Debugging CActiveRecord failed save() attempts

Created about a year ago by BoazTips0 comments – viewed 10,142 times – ( +4 ) – version 1.1
When you're filling up a form of a CActiveRecord (using CActiveForm for example), usually you'll construct your code so that in case of validation error you'll get back the form with the error displayed back to you, typically when CActiveForm.errorSummary() is used. This is how its done by Gii.

Upload CSV File

Created about a year ago by bhavesh vaghelaTutorials2 comments – viewed 10,127 times – ( +7 ) – version 1.1
View file

Visualization tree-multi subcategories as listbox or dropdownlist

Created about a year ago by KonApazHow-tos4 comments – viewed 10,057 times – ( +4 ) – version 1.1
Do you want to make a listbox or dropdownlist to select one or more categories or sub categories ?

Log Activity in DataBase

Created about a year ago by mahdi1986Tutorials6 comments – viewed 10,045 times – ( +8 ) – version 1.1
In this article i will explain how to customize log activity in database, Imaging you need to save IP user, Url request and user_name in database,But table created by default with Yii only have id,level,category,logtime and message

caching controllers with filters()

Created 3 years ago by RusAlexHow-tos1 comment – viewed 9,866 times – ( +2 ) – version 1.1
Hello, this article will describe some aspects about caching controllers with filters() method in your controller. And I will describe some problems I meet when using this approach for caching, the main problem was

Multi level dropdown menu in Bootstrap

Created 9 months ago by sefburhanTutorials1 comment – viewed 9,857 times – ( +37 ) – version 1.1
To get multi level dropdown menu of using boostrap extension (http://www.yiiframework.com/extension/bootstrap/) widget TbNavbar just follow steps

ChromePHP for Yii

Created 3 years ago by imeheszTips0 comments – viewed 9,796 times – ( +3 / -2 ) – version 1.1
ChromePHP is a console logging extension for Google Chrome.