Wiki

Sorted by ratingX
Displaying 131-140 of 711 result(s).

Special $variables in CGridView and CListView

Created 3 years ago by Steve FriedlTips11 comments – viewed 44,944 times – ( +26 / -1 ) – version 1.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.

Using standard filters in CGridView custom fields

Created 3 years ago by GOshaHow-tos4 comments – viewed 50,948 times – ( +17 ) – version 1.1
In this article I'll try to explain how to use standard quick search fields in CGridView with customized columns.For example: We have a record in a database with field switch having 0 or 1 values. After that we want a user to see on or off instead 1 or 0. So we do the usual thing:

htmlOptions explained for various controls.

Created 3 years ago by WoilTips1 comment – viewed 43,234 times – ( +17 ) – version 1.1
Most controls that are rendered by CHtml have an argument called $htmlOptions. This argument is an array that holds the attributes of the HTML element. For example the following code:

CListView AJAX filtering

Created 3 years ago by DragaTutorials17 comments – viewed 48,315 times – ( +17 ) – version 1.1
This tutorial shows how to filter CListView items by AJAX, and it's compatible with disabled JavaScript users In my case this has been done to filter users list

Understanding series articles

Created 3 years ago by GOshaTips0 comments – viewed 7,981 times – ( +16 ) – version 1.1
Here are all wiki articles from "Understanding" series by Yii wiki contributors:

Simple authorization system

Created 2 years ago by GustavoHow-tos1 comment – viewed 24,687 times – ( +16 ) – version 1.1
How to create a simple (non-RBAC) authorization system

1:n relations sometimes require CDbCriteria.together

Created 2 years ago by fsbTips5 comments – viewed 26,731 times – ( +16 ) – version 1.1
There are situations in which Active Record will generate nonsense queries from what a nieve Yii user might think is reasonable code. One such situation is a CActiveDataProvider using CDbCriteria to get data from parent and 1:n child table with a condition on the child table.

Manage application configuration in different modes

Created 5 years ago by qiangTutorials5 comments – viewed 30,706 times – ( +16 ) – version 1.1
Info: This tutorial references the idea presented in Jonah's excellent blog article.

Getting the Most out of APC for Yii

Created 2 years ago by Da:SourcererHow-tos10 comments – viewed 27,180 times – ( +16 ) – version 1.1
The Advanced PHP Cache is a PHP extension which primarily serves as an opcode cache for PHP. The basic idea is to save PHP from re-evaluating the PHP code to intermediate bytecode on each request. Installing and enabling APC already yields a significant performance benefit. However, APC is not a black box that will magically change all for the better. More over it is important to understand that APC needs memory to operate.
tags: caching, apc

Using search engine and user friendly URLs

Created 5 years ago by qiangTutorials7 comments – viewed 61,089 times – ( +23 / -1 ) – version 1.1
The Definitive Guide introduces the fundamentals of managing URLs in a Yii application. In this tutorial, we introduce a practical technique that can quickly turn your application into using search-engine-friendly URLs.
tags: SEO, URL