Wiki

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

How to use the official Yii installer for Composer

Created about a month ago by br0skHow-tos3 comments – viewed 3,082 times – ( +3 )
This way of using Composer is different from the Phundament 3 based wiki in that it is using the new official Composer installer for Yii. It is also only making use of Packagist not the packages at packages.phundament.com. This wiki doesn't aim to replace the Phundament 3 based wiki it is just another way of doing it and I really like the fact that it can use Packagist directly and not a separate repository.

Alternative wildcard characters CDbCriteria

Created 10 months ago by maigretHow-tos0 comments – viewed 2,926 times – ( +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:

Yet another implementation of CPhpAuthManager.

Created about a month ago by seenivasanHow-tos2 comments – viewed 2,721 times – ( +4 )
In this wiki, I try to implement a simple authorization schema without putting much logic inside a file or into database table. We are constructing authorization hierarchy inside the controller. We are getting roles for the current user from database table and assigning only roles to user that are declared in the particular controller. We have brought down the work of loading of auth data at main application level to controller level. This way we have pulverised auth data for entire site into smaller units. Finally we are going to look at couple of examples.

How to Setting Layouts in Yii

Created 8 days ago by ruderbytesHow-tos1 comment – viewed 2,701 times – ( +2 / -3 )
usually someone confused to make layouts in yii.

Syncing sessions between Yii and KCFinder

Created 5 months ago by Thanasis FotisHow-tos5 comments – viewed 2,604 times – ( +1 )
I have been trying to find information on how to sync the sessions between Yii and KCFinder so that the two applications can "communicate" with each other. I managed to find some bits and pieces on the correct approach to use, but not a definite guide or concrete code.

Entire Messages into javascript object

Created 8 months ago by markuxHow-tos0 comments – viewed 2,504 times – ( +1 )
I needed all messages with their translation into javascript. This is my solution:

Cron Jobs in Yii

Created 12 days ago by aarondfrancisHow-tos0 comments – viewed 2,485 times – ( +2 )
I've gotten Yii running cron jobs, and wanted to explain briefly how I did it.

Multilanguage Lorem Ipsum Text Generator

Created 5 months ago by yasenHow-tos0 comments – viewed 2,384 times – ( +2 )
Taking futher the idea from Piotr Masełkowski - http://www.yiiframework.com/extension/elipsum/ here's how to generate multilanguage Lorem Ipsum text. This example uses English and Bulgarian sample paragraphs. Create a class in /protected/components/LoremIpsum.php. Wall of text incoming wohoo...