Wiki

Sorted by date (updated)X
Displaying 521-530 of 771 result(s).

Alternative wildcard characters CDbCriteria

Updated 3 years ago by maigretHow-tos0 comments – viewed 7,071 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 3 years ago by Dark-SunTutorials2 comments – viewed 18,195 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 3 years ago by vibhaJadwaniTutorials3 comments – viewed 50,788 times – ( +10 ) – 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 3 years ago by rootbearHow-tos6 comments – viewed 10,687 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 3 years ago by hairylunchTutorials17 comments – viewed 241,268 times – ( +59 ) – version 1.1
The easiest way to update content in AJAX is to use the renderPartial method.
tags: AJAX

Model password confirmation field.

Updated 3 years ago by PashaLHow-tos10 comments – viewed 66,463 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.

ACL and RBAC

Updated 3 years ago by kevinkorbHow-tos0 comments – viewed 17,193 times – version 1.1
This HowTo assumes that you have a smattering of ACL in general and of how the acl-extension works basically. It will introduce you into the abstract and give you a hint on how to use Business-Rules. If you have in-depth questions, please refer to the extension documentation. Using ACL in an RBAC-manner cannot and should never obscure the fact that the underlying system is still ACL-based. In fact, the Business-Rules are just another layer in the permission-check plan.

CSS, JS and image URL shortcut methods

Updated 3 years ago by jonahTutorials2 comments – viewed 24,078 times – ( +2 / -1 ) – version 1.1
Below I have created an Html helper with methods to help me locate directories of my assets dynamically. Such assets may include CSS, JavaScript and images.
tags: URL

Add information to Yii::app()->user by extending CWebUser

Updated 3 years ago by Yang HeTutorials11 comments – viewed 121,578 times – ( +35 ) – version 1.1
This little tutorial explains a way how you can retrieve more parameters from Yii::app()->user by adding a component that extends CWebUser and retrieves the user information from database table named User.

Using the configuration file, explain what can be configured.

Updated 3 years ago by Yang HeTutorials0 comments – viewed 60,847 times – ( +20 ) – version 1.1
The purpose of this post is to let anyone quickly find how to accomplish a configuration task, and list here all the posibilities of the config.php file and also link to pages that explain how is each thing implemented.