Articles in category "tutorials", sorted by date (updated)X
Displaying 61-70 of 229 result(s).

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

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

Implementing a User Level Access System

Updated 6 months ago by Phil LoaizaTutorials12 comments – viewed 41,846 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 8 months ago by KonApazTutorials26 comments – viewed 305,444 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 8 months ago by NavarrTutorials15 comments – viewed 35,151 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 9 months ago by ShahcheragheanTutorials50 comments – viewed 244,849 times – ( +107 / -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 9 months ago by bennounaTutorials0 comments – viewed 6,283 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.

Yii for beginners 2

Updated 9 months ago by rackyczTutorials2 comments – viewed 34,435 times – ( +28 ) – version 1.1
Hi :-) Is that you again? Welcome !! :-)

Secure password hash storage and a Yii helper extension

Updated 10 months ago by fsbTutorials5 comments – viewed 27,049 times – ( +15 ) – version 1.1

Use crypt() for password storage

Updated 10 months ago by fsbTutorials16 comments – viewed 55,190 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 10 months ago by Gerhard LiebenbergTutorials20 comments – viewed 60,236 times – ( +25 / -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.