Wiki

Articles in category "tutorials"X
Displaying 91-100 of 229 result(s).

Working with radiobutton list

Created 2 years ago by vibhaJadwaniTutorials2 comments – viewed 31,437 times – ( +9 ) – version 1.1
This is a tutorial to work with radioButtonList which will handle enum datatype. Form design and validation both are detailed here.

XUpload Workflow

Created 2 years ago by AsgarothTutorials32 comments – viewed 46,442 times – ( +33 ) – version 1.1
This wiki describes a more complex workflow using the XUpload widget

Simple access control

Created 2 years ago by szfjozsefTutorials4 comments – viewed 28,885 times – ( +4 / -8 ) – version 1.1
For those who feel, the Controller->accessRules() or RBAC (Role-Based Access Control) is too complicated or doesn't want the username(s) to be hard-coded in accessRules(), here is a very simple, easy-to-implement solution.

MVC primer and 5 minute form walkthrough

Created 2 years ago by rix.rix.Tutorials0 comments – viewed 15,257 times – ( +8 ) – version 1.1
This tutorial assumes some basic knowledge of Yii and a functional development environment.
tags: Forms, tutorial, mvc

Simple RBAC

Created 2 years ago by hasanaviTutorials16 comments – viewed 63,389 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.

Events explained

Created 2 years ago by pligorTutorials9 comments – viewed 23,831 times – ( +22 / -3 ) – version 1.1
Let's see what exactly are the events in Yii!

Widget Personalizado

Created 2 years ago by CálcioTutorials0 comments – viewed 5,776 times – ( +5 ) – version 1.1
Nesse wiki vou tentar exemplificar de forma mais clara e objetiva o uso de widget com o CDataProvider.

Dynamic parent and child CGridView on single view. Using $.ajax to update child gridview via controller, after row in parent gridview was clicked.

Created 2 years ago by Gerhard LiebenbergTutorials20 comments – viewed 60,371 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.

Deploy yii on pagoda box

Created 2 years ago by francis jaTutorials0 comments – viewed 6,441 times – ( +4 ) – version 1.1
pagoda box is very useful tool for a programmer to test their php app online so its very useful one. For deploying code pagodabox use git command
tags: pagodabox, pagoda

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,434 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...