Wiki

Sorted by ratingX
Displaying 61-70 of 470 result(s).

Searching and Sorting by Count of Related Items in CGridView

Created about a year ago by softarkHow-tos10 comments – viewed 16,218 times – ( +21 )
Let's say we have two models and relation between them:

Reading the doc

Created 2 years ago by zaccariaTips0 comments – viewed 5,268 times – ( +21 )
Almost all the information you need whilst working with yii is written in the Class Reference.
tags: doc

Keeping a running total in a CGridView

Created 2 years ago by Steve FriedlHow-tos3 comments – viewed 15,300 times – ( +21 )
This tip created in conjunction with IRC #yii channel users emilsedgh and tydeas - thanks!
tags: CGridView

Filter / Search with CListView

Created about a year ago by JohnPollardHow-tos5 comments – viewed 17,689 times – ( +21 )
This is what I did. Its the EASIEST solution that I know of. I just reused the advanced search done in CGridView.

Common Yii questions

Created about a year ago by dckurushinFAQs2 comments – viewed 23,589 times – ( +20 )
Here I suggest to list the most common questions you meet in the forum or freenode irc. Feel free to edit this wiki article, and add another question with answer

Understanding Scenarios

Created about a year ago by Luke JurgsTutorials9 comments – viewed 35,371 times – ( +20 )
Scenarios are an extremely useful tool for separating validation tasks on any class you use derived from CModel. In this tutorial we will use CActiveRecord.

Using Yii with PHP 5.4 built-in webserver instead of Apache

Created about a year ago by samdarkHow-tos1 comment – viewed 6,814 times – ( +20 )
Since version 5.4 PHP can work as a simple webserver so you can develop Yii applications without installing Apache. That's how to use it:

Display an AJAX tree from your DB using CTreeView

Created 3 years ago by François GannazTutorials9 comments – viewed 26,958 times – ( +20 )
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

Multiple-database support in Yii

Created 2 years ago by Steve FriedlHow-tos8 comments – viewed 36,096 times – ( +20 )
The customary configuration of a Yii application includes just a single database section in the protected/config/main.php file, but it's easy to extend this to support more than one, tying each Model to one of the databases.
tags: Database