Wiki

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

How to upload a file using a model

Updated 7 months ago by KonApazTutorials26 comments – viewed 297,555 times – ( +82 / -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 7 months ago by NavarrTutorials15 comments – viewed 34,408 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 7 months ago by ShahcheragheanTutorials46 comments – viewed 238,611 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 8 months ago by bennounaTutorials0 comments – viewed 6,072 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 8 months ago by rackyczTutorials2 comments – viewed 33,231 times – ( +28 ) – version 1.1
Hi :-) Is that you again? Welcome !! :-)

Secure password hash storage and a Yii helper extension

Updated 9 months ago by fsbTutorials5 comments – viewed 26,717 times – ( +15 ) – version 1.1
Obsolete

Use crypt() for password storage

Updated 9 months ago by fsbTutorials16 comments – viewed 52,612 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 9 months ago by Gerhard LiebenbergTutorials20 comments – viewed 58,121 times – ( +24 / -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.

Two Login in same form in Yii application , with two tables

Updated 9 months ago by BaluTutorials4 comments – viewed 12,027 times – ( +4 / -7 )
login links will be

Getting to Understand Hierarchical RBAC Scheme

Updated 10 months ago by rAWTAZTutorials17 comments – viewed 70,247 times – ( +57 ) – version 1.1
Authentication and Authorization is a good tutorial. Among other topics, it describes basic aspects of Yii's RBAC implementation. But however hard I read the tutorial, I couldn't understand how exactly the hierarchy works. I found how to define authorization hierarchy, how business rules are evaluated, how to configure authManager, but almost nothing about how I should build my hierarchy, in what sequence its nodes are checked, when the checking process stops and what would be the checking result.