Wiki articles tagged with "filter"

Showing 1-14 of 14 items.

Clear CGridView Filters, Sort & Pager

Created 5 years ago by le_top, updated 5 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: 14 446 times
Version: 1.1
Category: How-tos

Filter & Sort by Summary Data in GridView Yii 2.0

Created 6 years ago by Kartik V, updated 6 years ago by Kartik V.

This wiki explains how to add summary data from related models into your Yii Framework 2.0 gridview with filtering and sorting by the summary columns.

5 2
49 followers
Viewed: 59 718 times
Version: 2.0
Category: Tutorials

Filter & Sort by calculated/related fields in GridView Yii 2.0

Created 6 years ago by Kartik V, updated a year ago by softark.

This wiki explains how to add calculated fields into your Yii Framework 2.0 gridview with filtering and sorting.

11 2
63 followers
Viewed: 206 713 times
Version: 2.0
Category: Tutorials

Caching strategy

Created 6 years ago by darkheir, updated 6 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: 9 587 times
Version: 1.1
Category: How-tos

How to use bizRules in standard accessControl filter

Created 6 years ago by Maciej Liżewski, updated 6 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: 18 154 times
Version: 1.1
Category: How-tos

Load the Yii-Bootstrap Extension on Specific Actions

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

CGridView, CListView and CActiveDataProvider

Created 7 years ago by softark, updated 6 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: 134 019 times
Version: 1.1
Category: Tutorials

Alternative wildcard characters CDbCriteria

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

Searching and Sorting by Count of Related Items in CGridView

Created 8 years ago by softark, updated 5 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: 52 698 times
Version: 1.1
Category: How-tos

Using CJuiDatePicker for CGridView filter

Created 8 years ago by softark, updated 6 years ago by Kostas Apazidis (KonApaz).

We can use a CJuiDatePicker for a CGridView inline filter.

19 0
31 followers
Viewed: 58 542 times
Version: 1.1
Category: How-tos

CGridView keep focus on the control after filtering

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

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

5 0
10 followers
Viewed: 14 484 times
Version: 1.1
Category: How-tos

Using filters with CGridView and CArrayDataProvider

Created 8 years ago by marcovtwout, updated 6 years ago by yugene.

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

18 0
29 followers
Viewed: 83 374 times
Version: 1.1
Category: How-tos

Filter / Search with CListView

Created 8 years ago by JohnPollard, updated 7 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: 50 151 times
Version: 1.1
Category: How-tos

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

Created 9 years ago by Mukke, updated 8 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: 32 839 times
Version: 1.1
Category: Tips