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

Showing 1-10 of 10 items.

Clear CGridView Filters, Sort & Pager

Created 11 years ago by le_top le_top, updated 11 years ago by le_top le_top.

Clearing CGridView filters and sort orders from the web pages, is usefull for the end user. Yii does not seem to propose a standard method. Furthermore, this is especially usefull when filters are "remembered" in the user's session.

2 0
3 followers
Viewed: 21 756 times
Version: 1.1
Category: How-tos

Caching strategy

Created 12 years ago by darkheir darkheir, updated 11 years ago by CeBe CeBe.

Note: Before reading this wiki you should have read the caching part in the Yii guide

3 1
12 followers
Viewed: 14 626 times
Version: 1.1
Category: How-tos

How to use bizRules in standard accessControl filter

Created 12 years ago by Maciej Liżewski Maciej Liżewski, updated 11 years ago by Maciej Liżewski Maciej Liżewski.

I assume you are familiar with accessControl standard filter. It allows you to separate privileges to run some action from action code itself. There is however one problem with most common usage - you cannot use bizRules, at least based on some parameters passed to 'checkAccess' just because it is hard to pass them in accessRules() result.

3 0
8 followers
Viewed: 23 049 times
Version: 1.1
Category: How-tos

Load the Yii-Bootstrap Extension on Specific Actions

Created 13 years ago by chuntley chuntley, updated 13 years ago by chuntley chuntley.

A big problem I've hit with the Yii-Bootstrap extension is that all AJAX requests are initializing Bootstrap because of preload. This is a huge waste of resources, especially when using AJAX-based file uploaders that split the file into chunks. Large file uploads using that method could be initializing bootstrap hundreds of times.

7 0
15 followers
Viewed: 30 075 times
Version: 1.1
Category: How-tos

Alternative wildcard characters CDbCriteria

Created 13 years ago by maigret maigret, updated 13 years ago by maigret maigret.

In SQL, wildcard characters can be used in "LIKE" expressions; the percent sign (%) matches zero or more characters, and underscore (_) a single character. Sometimes users are not familiar with these or they are using different ones like (*) and (+) similar to regular expressions. My colleages do so and then i decided to add this feature by extending CbCriteria. Especially adding a new parameter $...

1 0
2 followers
Viewed: 13 173 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 239 times
Version: 1.1
Category: How-tos

Using CJuiDatePicker for CGridView filter

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

We can use a CJuiDatePicker for a CGridView inline filter.

19 0
31 followers
Viewed: 67 127 times
Version: 1.1
Category: How-tos

CGridView keep focus on the control after filtering

Created 14 years ago by jayala jayala, updated 14 years ago by jayala jayala.

You can find the reason why I wrote this article here.

5 0
10 followers
Viewed: 19 072 times
Version: 1.1
Category: How-tos

Using filters with CGridView and CArrayDataProvider

Created 14 years ago by marcovtwout marcovtwout, updated 12 years ago by yugene yugene.

Using filters on CGridView with CActiveDataProvider is easy, but with CArrayDataProvider it is a bit tricky.

19 0
29 followers
Viewed: 99 169 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: 58 346 times
Version: 1.1
Category: How-tos