Wiki

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

Searching and Sorting by Count of Related Items in CGridView

Created about a year ago by softarkHow-tos10 comments – viewed 16,186 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,265 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,279 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,653 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,556 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,295 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,806 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,935 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

Impersonate Users within Yii Framework

Created 2 years ago by WoilTutorials5 comments – viewed 9,018 times – ( +20 )
For some applications it can be advantageous for administration reasons to allow site administrators to login as other users. This is sometimes called user impersonation or "becoming that user".