Articles in category "tutorials", sorted by commentsX
Displaying 21-30 of 251 result(s).

Use crypt() for password storage

Created 3 years ago by fsbTutorials16 comments – viewed 89,532 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.

Serve jQuery and jQuery-UI from Google's CDN

Created 5 years ago by YetiTutorials15 comments – viewed 28,617 times – ( +14 / -1 ) – version 1.1
There are good reasons to use Google's Content Delivery Network (CDN) to serve jQuery and jQuery UI on your site:

By Example: CHtml

Created 7 years ago by jonahTutorials15 comments – viewed 788,345 times – ( +117 / -1 ) – version 1.1
"By Example" cookbook pages will provide coding examples for many of the commonly used classes within Yii. We will try to provide as many usage examples as possible for keep these pages as helpful as possible.

How to use ldap in UserIdentity for authentication

Created 6 years ago by BeerSercTutorials15 comments – viewed 48,804 times – ( +14 ) – version 1.1
Yii does not have an LDAP class itself, but its very easy to implement LDAP in the stock UserIdentity class.

Getting to Understand Hierarchical RBAC Scheme

Created 5 years ago by daemonsTutorials15 comments – viewed 94,852 times – ( +63 ) – 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.

Drills : Search by a HAS_MANY relation in Yii 1.1

Created 3 years ago by softarkTutorials13 comments – viewed 44,871 times – ( +33 ) – version 1.1
Sometimes we get lost trying to search by a HAS_MANY relation using CActiveRecord or CActiveDataProvider in Yii 1.1. This article is a series of drills that try to describe the practical techniques of searching by a HAS_MANY relation.

Yii for beginners

Created 5 years ago by rackyczTutorials13 comments – viewed 290,150 times – ( +99 ) – version 1.1
Hi. This is first article with my Yii tutorial. I had to split it into more articles as there's limited length of texts on Wiki. So once you understand basics, you can read next article here: Yii for beginners 2.

Understanding Scenarios

Created 4 years ago by Luke JurgsTutorials12 comments – viewed 118,109 times – ( +31 ) – version 1.1
Scenarios are an extremely useful tool for separating validation tasks on any class you use derived from CModel. In this tutorial we will use CActiveRecord.

How to work with flash messages

Created 7 years ago by pfthTutorials12 comments – viewed 252,173 times – ( +59 ) – version 1.1
Set your messages in a controller:

Setting and maintaining the language in Application (i18n)

Created 7 years ago by olafureTutorials12 comments – viewed 99,738 times – ( +23 ) – version 1.1
As seen in this post, Yii doesn't enforce how language is set and maintained within the session.
tags: i18n, translation