Wiki articles in category How-tos tagged with "search"

Showing 1-5 of 5 items.

How to create a criteria condition for a multiple value text search i.e a "LIKE IN"

Created 12 years ago by toph toph, updated 9 years ago by toph toph.

This is a shortcut for adding a text search for multiple values i.e.

0 0
5 followers
Viewed: 59 118 times
Version: 1.1
Category: How-tos

Take more control of CGridview and model searching (related model or another controller)

Created 12 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz), updated 12 years ago by CeBe CeBe.

Suppose you have an Application in Yii that manages hotels each one has many customers.

2 0
6 followers
Viewed: 46 695 times
Version: 1.1
Category: How-tos

Searching and Sorting by Count of Related Items in CGridView

Created 14 years ago by softark softark, updated 11 years ago by softark softark.

class Post extends CActiveRecord {

...

} ` When you list Authors in grid you would like to print the count of posts in column, allow sorting on this column and probably filtering by the count.

21 0
40 followers
Viewed: 64 876 times
Version: 1.1
Category: How-tos

Filter / Search with CListView

Created 14 years ago by JohnPollard JohnPollard, updated 13 years ago by JohnPollard JohnPollard.

This is what I did. Its the EASIEST solution that I know of. I just reused the advanced search done in CGridView.

22 0
26 followers
Viewed: 59 024 times
Version: 1.1
Category: How-tos

Using standard filters in CGridView custom fields

Created 15 years ago by GOsha GOsha, updated 15 years ago by jwerner jwerner.

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:

<?php $this->widget('zii.widgets.grid.CGridView', array(
//.....
array(
    'name'=>'...
14 0
16 followers
Viewed: 77 976 times
Version: 1.1
Category: How-tos