Wiki

Articles in category "tutorials", sorted by date (updated)X
Displaying 161-170 of 238 result(s).

Display an AJAX tree from your DB using CTreeView

Updated 2 years ago by François GannazTutorials10 comments – viewed 49,103 times – ( +21 ) – 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 log context information to logger (session id, user, ...)

Updated 2 years ago by ajsharmaTutorials0 comments – viewed 13,159 times – ( +2 ) – version 1.1
Logging context information (session, user, ...) to the logfile can be of great help tracking down problems with specific users.
tags: Logging

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

Updated 2 years ago by marcanuyTutorials5 comments – viewed 25,275 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.

config Use MS SQL SERVER 2005 2008.

Updated 2 years ago by AsgarothTutorials1 comment – viewed 39,495 times – ( +4 ) – version 1.1
Use SQL SERVER 2000, the date format not like: yyyy/mm/dd hh:mm:ss. So I change to use SQL SERVER 2008 EXPRESS.

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

Updated 2 years ago by c@cbaTutorials3 comments – viewed 44,045 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...

Front-end developer's guide

Updated 3 years ago by waitekkTutorials5 comments – viewed 22,438 times – ( +11 ) – version 1.1
This wiki is a work in progress.

Collaborative software with git

Updated 3 years ago by Maurizio Domba CerinTutorials0 comments – viewed 6,049 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.

Exporting CGridView results to CSV file

Updated 3 years ago by RusAlexTutorials9 comments – viewed 33,289 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

Updated 3 years ago by PablovpTutorials6 comments – viewed 31,118 times – ( +12 / -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

Updated 3 years ago by hasanaviTutorials2 comments – viewed 20,927 times – ( +6 ) – version 1.1
Hi,