Wiki

Articles in category "how-tos", sorted by ratingX
Displaying 201-210 of 354 result(s).

Sort and filter a custom or composite CGridView column - that may even contain data from different tables.

Created 3 years ago by Gerhard LiebenbergHow-tos2 comments – viewed 51,463 times – ( +6 / -1 ) – version 1.1
I have a table (account) which contains "General Ledger" accounts. Each account has its own account_description - such as 'inventory', 'sales', etc.

model rules depended by user roles-permissions

Created 3 years ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 10,192 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 3 years ago by Maciej Li┼╝ewskiHow-tos8 comments – viewed 14,588 times – ( +3 ) – version 1.1
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.

History Autocomplete

Created 5 years ago by zaccariaHow-tos2 comments – viewed 9,069 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 3 years ago by Kostas Apazidis (KonApaz)How-tos8 comments – viewed 32,176 times – ( +3 ) – version 1.1
This is a bried guide about displaying of custom sql query results.

How to install Yii 2 advanced on a shared hosting environment

Created about a year ago by oligalmaHow-tos1 comment – viewed 12,972 times – ( +3 ) – version 2.0
I've read many comments that it's not possible to install Yii 2 advanced on a shared hosting environment, as it has two webroots. This is partially true.

A Single Page with a List and a Detail

Created 8 months ago by softarkHow-tos1 comment – viewed 6,631 times – ( +3 ) – version 2.0
The CRUD generator of Gii has done a wonderful job for you, and you already have a list of items in the "index" page and a detailed view of a specified item in the "view" page.
tags: gridview, detail, ajax

Adding Bash Command Completion for Yii Commands

Created 4 years ago by Dustin OpreaHow-tos0 comments – viewed 9,485 times – ( +3 ) – version 1.1
This article discusses the installation/configuration of the YiiBash project (https://github.com/dsoprea/YiiBash).

Alternative wildcard characters CDbCriteria

Created 4 years ago by maigretHow-tos0 comments – viewed 7,662 times – ( +3 ) – version 1.1
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 $wildcard_chars to the method addSearchCondition to replace them if needed with standard SQL characters:

How to create Module based Login

Created 3 years ago by Ibrar TuriHow-tos1 comment – viewed 13,128 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.