Wiki

Sorted by date (updated)X
Displaying 451-460 of 703 result(s).

Model password confirmation field.

Updated 2 years ago by PashaLHow-tos10 comments – viewed 49,525 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 2 years ago by kevinkorbHow-tos0 comments – viewed 12,770 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 2 years ago by jonahTutorials2 comments – viewed 20,481 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 2 years ago by Yang HeTutorials11 comments – viewed 98,331 times – ( +33 ) – 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 2 years ago by Yang HeTutorials0 comments – viewed 47,916 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.

Using search engine and user friendly URLs

Updated 2 years ago by Yang HeTutorials7 comments – viewed 60,063 times – ( +23 / -1 ) – version 1.1
The Definitive Guide introduces the fundamentals of managing URLs in a Yii application. In this tutorial, we introduce a practical technique that can quickly turn your application into using search-engine-friendly URLs.
tags: SEO, URL

Encapsulate db and module configurations

Updated 2 years ago by Yang HeTutorials3 comments – viewed 9,571 times – ( +7 ) – version 1.1
This method was inspirated on the excellent text about different environments available at http://www.yiiframework.com/doc/cookbook/32/
tags: module

How to use default layout for error pages instead of errorXXX views

Updated 2 years ago by Yang HeTutorials1 comment – viewed 18,105 times – ( +4 ) – version 1.1
The issue is covered in "The Definite Guide to Yii" (Error Handling - Handling Errors Using an Action).

How to add ajax-loading indicators

Updated 2 years ago by Yang HeTutorials5 comments – viewed 42,249 times – ( +27 ) – version 1.1
With yii you're able to create ajax requests and updates easily. But most times you always want to show a loading indicatior to your user.
tags: AJAX

Adding login form to each page

Updated 2 years ago by Yang HeTutorials5 comments – viewed 31,831 times – ( +3 / -2 ) – version 1.1
After adding proper form to the main layout, like: