Showing 1-14 of 14 items.

How to use bizRules in standard accessControl filter

Created 13 years ago by Maciej Liżewski Maciej Liżewski, updated 12 years ago by Maciej Liżewski Maciej Liżewski. 8 comments

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
Viewed: 23 783 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. 5 comments

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
Viewed: 30 977 times
Version: 1.1
Category: How-tos

CGridView, CListView and CActiveDataProvider

Created 13 years ago by softark softark, updated 13 years ago by softark softark. 22 comments

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
Viewed: 151 619 times
Version: 1.1
Category: Tutorials

Alternative wildcard characters CDbCriteria

Created 14 years ago by maigret maigret, updated 14 years ago by maigret maigret. 0 comments

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
Viewed: 13 850 times
Version: 1.1
Category: How-tos