Wiki

Articles in category "tutorials", sorted by date (updated)X
Displaying 71-80 of 234 result(s).

Installing Yii Users and Rights to Newly Created Yii app

Updated 7 months ago by Rajith RTutorials25 comments – viewed 59,159 times – ( +22 / -10 ) – version 1.1
After creating an yii app . we need to implement permission, Authentication and Authorization .so the best way is to use the Yii users and Rights modules.

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

Updated 7 months ago by Anas AbuDayahTutorials5 comments – viewed 25,411 times – ( +5 / -1 ) – version 1.1
I found a better solution.
tags: Yii, user, rbac

Implementing a User Level Access System

Updated 8 months ago by Phil LoaizaTutorials12 comments – viewed 43,216 times – ( +28 / -1 ) – version 1.1
I would like to provide you a quick tip on how to implement user level access to your Yii applications.

How to upload a file using a model

Updated 10 months ago by KonApazTutorials27 comments – viewed 320,696 times – ( +83 / -6 ) – version 1.1
First declare an attribute to store the file name in the model class (either a form model or an active record model). Also declare a file validation rule for this attribute to ensure a file is uploaded with specific extension name.
tags: File upload

How to use ldap in UserIdentity for authentication

Updated 10 months ago by NavarrTutorials15 comments – viewed 36,796 times – ( +12 ) – version 1.1
Yii does not have an LDAP class itself, but its very easy to implement LDAP in the stock UserIdentity class.

Creating a dependent dropdown

Updated 11 months ago by ShahcheragheanTutorials51 comments – viewed 252,854 times – ( +108 / -3 ) – version 1.1
Often you'll need a form with two dropdowns, and one dropdown's values will be dependent on the value of the other dropdown. Using Yii's built-in AJAX functionality you can create such a dropdown.

Catching bounce messages (NDR) and piping them to a Yii command

Updated 11 months ago by bennounaTutorials0 comments – viewed 6,605 times – ( +2 ) – version 1.1
In order to avoid bounce messages and unsolicited registrations, most webapps send automatic activation emails upon user registration, and the account remain inactive as long as it is not activated. Better yet, you can periodically purge your data by removing accounts that have not yet been activated.

Secure password hash storage and a Yii helper extension

Updated about a year ago by fsbTutorials5 comments – viewed 27,504 times – ( +15 ) – version 1.1
Obsolete

Use crypt() for password storage

Updated about a year ago by fsbTutorials16 comments – viewed 59,519 times – ( +24 ) – version 1.1
Update: This wiki has been rewritten to be in line with Yii 1.1.14. Since many of the detailed complexities are now handled by Yii, the article focuses on how the crypt() built-in function works and why it's important to use it correctly.

Dynamic parent and child CGridView on single view. Using $.ajax to update child gridview via controller, after row in parent gridview was clicked.

Updated about a year ago by Gerhard LiebenbergTutorials20 comments – viewed 63,670 times – ( +26 / -1 ) – version 1.1
This wiki is a step-by-step example explaining how the controller, model and the view's CGridView work together. It explains simple things - as well as more complex things that you will anyway quickly have to know. So, even if you don't use dynamic gridviews, take a morning off and thoroughly work through this tutorial. It should save you lots of struggling.