Wiki

Sorted by date (updated)X
Displaying 441-450 of 702 result(s).

Working with CGridView in Admin Panel

Updated 2 years ago by vibhaJadwaniTutorials18 comments – viewed 60,499 times – ( +43 / -1 ) – version 1.1
This is a tutorial for how to add input text-Field, check-box, buttons in CGridView.

Auto set model fields values

Updated 2 years ago by vibhaJadwaniTutorials3 comments – viewed 14,593 times – ( +9 ) – version 1.1
This is a tutorial for how to auto set model values without any code.

How to filter CGridView with From Date and To Date datepicker

Updated 2 years ago by kiran sharmaTips12 comments – viewed 30,742 times – ( +17 / -3 ) – version 1.1
This artical is related to allow user to filter CGridView with date range using datepicker on submit button. Here I use Yii Cookie to preserve date in datepicker textbox after submitting the form.

Using counters with ActiveRecord

Updated 2 years ago by Alexander UstimenkoTips8 comments – viewed 19,833 times – ( +14 / -1 ) – version 1.1
Let's say, for example, that you are developing a blog or some kind of CMS and you want to track the number of times each post was viewed (maybe to show a list of the most viewed ones).

Alternative wildcard characters CDbCriteria

Updated 2 years ago by maigretHow-tos0 comments – viewed 5,199 times – ( +3 ) – version 1.1
In SQL, wildcard characters can be used in "LIKE" expressions; the percent sign (%) matches zero or more characters, and underscore (_) a single character. Sometimes users are not familiar with these or they are using different ones like (*) and (+) similar to regular expressions. My colleages do so and then i decided to add this feature by extending CbCriteria. Especially adding a new parameter $wildcard_chars to the method addSearchCondition to replace them if needed with standard SQL characters:

How to setup FCKeditor

Updated 2 years ago by Dark-SunTutorials2 comments – viewed 15,362 times – ( +3 / -1 ) – version 1.1
To start with you need to download the latest stable release of FCKeditor. Extract the downloaded file and place the fckeditor/ folder in your applications webroot directory.

Working with radiobutton list

Updated 2 years ago by vibhaJadwaniTutorials3 comments – viewed 33,474 times – ( +9 ) – version 1.1
This is a tutorial to work with radioButtonList which will handle enum datatype. Form design and validation both are detailed here.

Publish yii webapp using Git push

Updated 2 years ago by rootbearHow-tos6 comments – viewed 7,464 times – ( +2 ) – version 1.1
I did not invent this instructions, I read it somewhere and re-organized in my way as I was trying and it works for me;
tags: git

Update content in AJAX with renderPartial

Updated 2 years ago by hairylunchTutorials15 comments – viewed 182,416 times – ( +58 ) – version 1.1
The easiest way to update content in AJAX is to use the renderPartial method.
tags: AJAX

Model password confirmation field.

Updated 2 years ago by PashaLHow-tos10 comments – viewed 49,577 times – ( +11 / -1 ) – version 1.1
I had some troubles with the password confirmation field for when adding updating user records, so i thought that i should share the way i got it working.