Wiki

Articles in category "tutorials"X
Displaying 41-50 of 175 result(s).

Simple RBAC

Created about a year ago by hasanaviTutorials11 comments – viewed 34,394 times – ( +33 / -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 about a year ago by pligorTutorials5 comments – viewed 12,136 times – ( +17 / -2 )
Let's see what exactly are the events in Yii!

Widget Personalizado

Created about a year ago by CálcioTutorials0 comments – viewed 4,126 times – ( +5 )
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 about a year ago by Gerhard LiebenbergTutorials17 comments – viewed 29,371 times – ( +21 )
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 about a year ago by francis jaTutorials0 comments – viewed 5,023 times – ( +4 )
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 about a year ago by c@cbaTutorials0 comments – viewed 17,286 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...

Collaborative software with git

Created about a year ago by sensorarioTutorials0 comments – viewed 4,285 times – ( +9 )
The most difficult thing in a big project, is to manage conflicts with files modified by others users. Git can do this work for us.

Starting your Yii Project Reference Guide (with Git VCS in Linux)

Created about a year ago by marcanuyTutorials4 comments – viewed 13,976 times – ( +16 )
I've found useful to have a step by step reference guide to work with Git with most used commands, feel free to update it with useful information you may find interesting too.

Exporting CGridView results to CSV file

Created about a year ago by RusAlexTutorials8 comments – viewed 16,627 times – ( +6 / -2 )
A few days ago, i worked for CGridView exporting functional for my client. He asked me to create a simple exporting to a CSV file a CGridView search results.
tags: cgridview, export, csv

Setting application parameters dynamically in the back-end

Created about a year ago by PablovpTutorials4 comments – viewed 17,561 times – ( +10 / -1 )
I was wondering how to set-up the application parameters in the back-end to use them all around the application without the need of using the database and I came up with this solution, I hope it helps somebody else.