Wiki

Articles in category "how-tos", sorted by ratingX
Displaying 191-200 of 329 result(s).

Google style sign out of all other sessions

Created 6 months ago by Rohit SutharHow-tos2 comments – viewed 3,490 times – ( +4 ) – version 1.1
In this wiki I will show how could logout from all other sessions or all other places.

Cron Jobs in Yii

Created about a year ago by aarondfrancisHow-tos1 comment – viewed 15,187 times – ( +4 )
I've gotten Yii running cron jobs, and wanted to explain briefly how I did it.

Integrating Wordpress and Yii: yet another approach

Created 3 years ago by goncinHow-tos8 comments – viewed 19,470 times – ( +8 / -2 ) – version 1.1
It seems many people is trying to make Wordpress and Yii work together. I got stuck with the same problem, but now I think I have achieved doing it, after a lot of hard thinking and many work hours spent.

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

Created about a year ago by Gerhard LiebenbergHow-tos2 comments – viewed 31,780 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 about a year ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 6,779 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 about a year ago by redguyHow-tos8 comments – viewed 10,031 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 3 years ago by zaccariaHow-tos2 comments – viewed 7,592 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 about a year ago by Kostas Apazidis (KonApaz)How-tos2 comments – viewed 18,948 times – ( +3 ) – version 1.1
This is a bried guide about displaying of custom sql query results.

Adding Bash Command Completion for Yii Commands

Created 2 years ago by Dustin OpreaHow-tos0 comments – viewed 7,172 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 2 years ago by maigretHow-tos0 comments – viewed 5,688 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: