Wiki articles tagged with "filter"

Showing 1-12 of 12 items.

Alternative wildcard characters CDbCriteria

Created 11 years ago by maigret, updated 11 years ago by 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: 11 585 times
Version: 1.1
Category: How-tos

Caching strategy

Created 10 years ago by darkheir, updated 10 years ago by CeBe.

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

3 1
12 followers
Viewed: 11 795 times
Version: 1.1
Category: How-tos

Clear CGridView Filters, Sort & Pager

Created 9 years ago by le_top, updated 9 years ago by 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: 18 689 times
Version: 1.1
Category: How-tos

How to use bizRules in standard accessControl filter

Created 10 years ago by Maciej Liżewski, updated 9 years ago by 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: 20 902 times
Version: 1.1
Category: How-tos

CGridView keep focus on the control after filtering

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

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

5 0
10 followers
Viewed: 17 006 times
Version: 1.1
Category: How-tos

Load the Yii-Bootstrap Extension on Specific Actions

Created 11 years ago by chuntley, updated 11 years ago by 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: 27 456 times
Version: 1.1
Category: How-tos

Search method of a model for filters when using dates - unixtimestamp in database

Created 13 years ago by Mukke, updated 12 years ago by jwerner.

I ran into a problem and on irc we worked it out. Since there is a lack on information on filters in genral i thought i'd start sharing all my findings, might be usefull for other people.

10 0
11 followers
Viewed: 37 241 times
Version: 1.1
Category: Tips

Using filters with CGridView and CArrayDataProvider

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

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

19 0
29 followers
Viewed: 92 835 times
Version: 1.1
Category: How-tos

Using CJuiDatePicker for CGridView filter

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

We can use a CJuiDatePicker for a CGridView inline filter.

19 0
31 followers
Viewed: 63 642 times
Version: 1.1
Category: How-tos

Searching and Sorting by Count of Related Items in CGridView

Created 12 years ago by softark, updated 9 years ago by 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: 58 413 times
Version: 1.1
Category: How-tos

Filter / Search with CListView

Created 12 years ago by JohnPollard, updated 11 years ago by 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: 55 315 times
Version: 1.1
Category: How-tos

CGridView, CListView and CActiveDataProvider

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

CGridView (or CListView) together with CActiveDataProvider is a very powerful combination of the built-in tools of Yii. But how do they work together to accomplish their fantastic functions? And what are you expected to do to use them and to customize their behaviors? This article explains the very basics of them.

26 0
33 followers
Viewed: 143 460 times
Version: 1.1
Category: Tutorials