Wiki

Sorted by date (updated)X
Displaying 341-350 of 483 result(s).

Special $variables in CGridView and CListView

Updated about a year ago by Steve FriedlTips8 comments – viewed 23,376 times – ( +18 / -1 )
The popular CListView and CGridView widgets each take a data provider and iterate over each data object produced, calling the user's code to render each row one at a time, and most are familiar with the use of the $data variable to represent the current model object or array.

how to use github (un)official extension repo in your Yii project

Updated about a year ago by RusAlexTips4 comments – viewed 5,405 times – ( +4 )
Using a git submodule command in your yii project

free PHP IDE CodeLobster supports Yii framework

Updated about a year ago by clodTutorials0 comments – viewed 9,400 times – ( +5 )
This page is created to supply short directions and general tips for managing a Yii application in Codelobster PHP Edition.

Send asset folder path to a javascript of a widget

Updated about a year ago by sensorarioTips4 comments – viewed 10,480 times – ( +4 )
When you develop a widget, you could need one image that is in the assets folder, you can use it simply within a css. You can load a css or javascript script doing this:

Shrink Yii, help your IDE and speed up copying

Updated about a year ago by dckurushinTips11 comments – viewed 6,372 times – ( +9 / -8 )
In this little tip, I will help you to cut Yii size for about half

Multilanguage web site controlling by get request and database allowed languages

Updated about a year ago by reiTutorials2 comments – viewed 12,397 times – ( +6 )
First, you have to have create database table for default language and allowed languages.

Configuring CWebLogRoute for DB profiling

Updated about a year ago by Igor IvanovicTutorials1 comment – viewed 9,592 times – ( +3 )
/index.php /protected/config/main.php
tags: logger, profiler, db

Caching the config main.php

Updated about a year ago by dckurushinTutorials10 comments – viewed 8,125 times – ( +4 / -1 )
The config long array included every time, and it's not cached at all!

Using cache in CActiveDataProvider

Updated about a year ago by StammTips7 comments – viewed 9,538 times – ( +17 )
First param in CActiveDataProvider could be a string with model name or instance of class. So, you may use CActiveRecord::cache() for cache, but you need set third param to 2, because you should cache 2 queries: counting and get data.