Articles in category "tutorials"X
Displaying 111-120 of 243 result(s).

Widget Personalizado

Created 3 years ago by CálcioTutorials0 comments – viewed 7,007 times – ( +6 ) – version 1.1
Here I will explain with the clear way and objective an use the widget with 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 3 years ago by Gerhard LiebenbergTutorials20 comments – viewed 79,749 times – ( +28 / -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 3 years ago by francis jaTutorials0 comments – viewed 7,201 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 3 years ago by c@cbaTutorials3 comments – viewed 51,571 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...

Collaborative software with git

Created 3 years ago by sensorarioTutorials0 comments – viewed 6,760 times – ( +9 ) – version 1.1
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 3 years ago by marcanuyTutorials5 comments – viewed 27,705 times – ( +18 ) – version 1.1
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 3 years ago by RusAlexTutorials9 comments – viewed 38,783 times – ( +6 / -3 ) – version 1.1
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 3 years ago by PablovpTutorials6 comments – viewed 34,191 times – ( +13 / -1 ) – version 1.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.

Multiple file upload handler

Created 3 years ago by hasanaviTutorials2 comments – viewed 22,565 times – ( +6 ) – version 1.1

SEO-conform Multilingual URLs + Language Selector Widget (i18n)

Created 3 years ago by c@cbaTutorials36 comments – viewed 51,301 times – ( +32 ) – version 1.1
You have a multilingual application, and you want the URL of a page to be different for different languages, to account for SEO. The URL for the contact page for example should look like in english, and in german. This tutorial describes how to make it happen. Note that currently selected language is always a part of the URL, and thus available to the application through $_GET. You don't have to use sessions variables to keep track of the language if you don't want to.