Wiki

Articles tagged with "understanding", sorted by date (updated)X
Displaying 1-10 of 11 result(s).

How to learn Yii?!

Updated about a month ago by yJeroenTutorials7 comments – viewed 37,331 times – ( +16 )
Here is a step by step To-Do list for Yii beginners. The list is an advice of what tutorials and documentation you can walk through to get a full understanding of the Yii Framework. These can be a help to learn Yii.

Understanding the view rendering flow

Updated about a month ago by JorgeeFAQs10 comments – viewed 68,137 times – ( +65 / -1 )
There is a lot of confusion surrounding what is happening behind the scenes when you render a view.

Understanding Scenarios

Updated 3 months ago by Luke JurgsTutorials9 comments – viewed 35,248 times – ( +20 )
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.

Getting to Understand Hierarchical RBAC Scheme

Updated 5 months ago by GismoTutorials10 comments – viewed 44,124 times – ( +50 )
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.

Understanding "Safe" Validation Rules

Updated 5 months ago by GismoFAQs7 comments – viewed 39,698 times – ( +72 )
A common source of confusion among new Yii users is how the 'safe' validator works, how it works with other validators, and why it's necessary in the first place. This article means to clear up this confusion, as well as explain the notion of Massive Assignment.

CGridView: Use special variable $data in the htmlOptions of a column (i.e. evaluate htmlOptions attribute)

Updated about a year ago by c@cbaTutorials0 comments – viewed 16,226 times – ( +20 / -1 )
    For each column of the CGridView, we can specify name, value, htmlOptions, cssClassExpression etc. In the declarations of the attributes value and cssClassExpression we can use the "special" variable $data, for example like this: 'value'=>'$data->author->username',.     Now we might want to use $data in the declaration of the htmlOptions attribute, which is normally not possible, to generate for example the tag <td id="3" class="name_3">, where 3 is the id of the data model for the current row, i.e. $data->id. That is, we want to be able to use: 'htmlOptions'=>array('id'=>'$data->id', 'class'=>'"name_{$data->id}"')     Here's a way to accomplish this...

How to work with flash messages

Updated about a year ago by François GannazTutorials9 comments – viewed 84,004 times – ( +48 )
Set your messages in a controller:

Understanding series articles

Updated about a year ago by GOshaTips0 comments – viewed 6,217 times – ( +16 )
Here are all wiki articles from "Understanding" series by Yii wiki contributors:

Understanding Virtual Attributes and get/set methods

Updated about a year ago by GOshaTutorials16 comments – viewed 46,396 times – ( +64 )
When you define or extend a class, you can create class variables and methods in Yii just like you can in any other PHP system:

Understanding Autoloading, Helper Classes and Helper Functions

Updated about a year ago by GOshaTutorials4 comments – viewed 36,819 times – ( +23 )
Many Yii users ask how to create helper classes and functions, and though there are numerous approaches spread out among the forum and wiki articles, this Tutorial tries to bring it all together in one place.