Wiki

Articles in category "how-tos", sorted by ratingX
Displaying 161-170 of 255 result(s).

model rules depended by user roles-permissions

Created 10 months ago by KonApazHow-tos0 comments – viewed 4,500 times – ( +3 )
This is a reference about model validators and user roles. In many cases we want model validators to applied only for some privileged users or not

How to use bizRules in standard accessControl filter

Created 9 months ago by redguyHow-tos8 comments – viewed 6,449 times – ( +3 )
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.

CGridView Date Range Without Cookies or Session (External Filtering)

Created 8 months ago by ezekielnoobHow-tos5 comments – viewed 4,915 times – ( +3 )
Here's a tutorial on how to create a CGridView with external date filters the trick is to create hidden columns within the CGridView Filters something like in the example below:

History Autocomplete

Created 2 years ago by zaccariaHow-tos2 comments – viewed 6,727 times – ( +3 ) – version 1.1
In application development we often have to choose how to mange recurrent values.
tags: autocomplete

custom sql query results to CDetailView

Created 6 months ago by KonApazHow-tos2 comments – viewed 8,581 times – ( +3 )
This is a bried guide about displaying of custom sql query results.

Adding Bash Command Completion for Yii Commands

Created about a year ago by Dustin OpreaHow-tos0 comments – viewed 5,927 times – ( +3 ) – version 1.1
This article discusses the installation/configuration of the YiiBash project (https://github.com/dsoprea/YiiBash).

ClientValidation for files (modern browsers)

Created 4 months ago by KonApazHow-tos0 comments – viewed 2,944 times – ( +3 ) – version 1.1
There are cases that you want to validate the file format, size, extension etc but how to do that without submit the form ?

HOW TO: Use token based authentication

Created 3 months ago by le_topHow-tos0 comments – viewed 3,423 times – ( +3 ) – version 1.1
After reading the other wiki article regarding token based access, I thought that it might be interesting to share my method.

Simple Multiple Environment Setup with Default Yii Installation

Created 2 months ago by turiHow-tos2 comments – viewed 2,717 times – ( +3 ) – version 1.1
After installing Yii basic application on our systems, most of the time we want to have multiple environment such as local, dev and live setup. Most of the times when we want to make changes to configuration file, we have to over-write configurations file for each environment.

How to create Module based Login

Created 2 months ago by turiHow-tos1 comment – viewed 4,139 times – ( +3 ) – version 1.1
Lets say we have 3 modules (customer, user, admin) in an application and we need, separate logins for each module.