Wiki

Articles in category "tutorials", sorted by ratingX
Displaying 41-50 of 229 result(s).

Impersonate Users within Yii Framework

Created 3 years ago by WoilTutorials5 comments – viewed 12,366 times – ( +22 ) – version 1.1
For some applications it can be advantageous for administration reasons to allow site administrators to login as other users. This is sometimes called user impersonation or "becoming that user".

Using the configuration file, explain what can be configured.

Created 4 years ago by atrandafirTutorials0 comments – viewed 46,631 times – ( +20 ) – version 1.1
The purpose of this post is to let anyone quickly find how to accomplish a configuration task, and list here all the posibilities of the config.php file and also link to pages that explain how is each thing implemented.

Display an AJAX tree from your DB using CTreeView

Created 4 years ago by François GannazTutorials10 comments – viewed 45,636 times – ( +20 ) – version 1.1
This example uses a MySQL DB with a table named tree with the fields id, name, and parent_id. The parent_id will be NULL for root elements. The SQL is kept simple (no autoinc, no FK, etc).
tags: AJAX, CTreeView

How to learn Yii?!

Created 2 years ago by yJeroenTutorials9 comments – viewed 62,144 times – ( +19 ) – version 1.1
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.

Clean JavaScript code in your views

Created about a year ago by nineinchnickTutorials6 comments – viewed 13,795 times – ( +19 )
This tutorial presents a way of separating JS code from views and passing to it values from PHP.

Theming your Zii Widgets

Created 3 years ago by Luis Lobo BorobiaTutorials16 comments – viewed 41,466 times – ( +19 ) – version 1.1
One aspect of User Interface Design has to do with the coherence of the design and the use of the colors between the different User Interface Components used.

Simple RBAC

Created 2 years ago by hasanaviTutorials16 comments – viewed 63,422 times – ( +45 / -3 ) – version 1.1
If you need simple Role based access control without the long RBAC process then this article is just for you. Lets jump to the point.

CJuiDialog and AjaxSubmitButton

Created 4 years ago by tydeas_drTutorials22 comments – viewed 84,642 times – ( +37 / -2 ) – version 1.1
Hello ppl. Even though i have a small experience with yii I though of writing this to help people which want to do something similar.
tags: AJAX

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

Created 2 years ago by c@cbaTutorials3 comments – viewed 37,456 times – ( +28 / -1 ) – version 1.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...

Implementing a User Level Access System

Created 3 years ago by Antonio RamirezTutorials12 comments – viewed 41,949 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.