Wiki

Sorted by viewsX
Displaying 431-440 of 483 result(s).

Access log output from unit tests

Created about a year ago by MikeTips2 comments – viewed 3,330 times – ( +2 )
Say, you want to write a test for a component which provides a caching feature. How would you know, that some method of your component returns a cached result? With the solution described here you can inspect all log outputs. So you could search the logs for accesses to the DB to really make sure, that the result was served from cache.

Upload Files to Rackspace Cloud Files CDN

Created 4 months ago by StephenMiracleTutorials0 comments – viewed 3,159 times – ( +1 )
** I actually made this into an extension for easier use. You can view the extension: http://www.yiiframework.com/extension/rackspaceconnect/

Alternative wildcard characters CDbCriteria

Created 11 months ago by maigretHow-tos0 comments – viewed 3,076 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:

Adding a link to a CDataColumn

Created 3 months ago by le_topTips4 comments – viewed 3,075 times – ( +3 )
Backoffice Grid Views often list information like Posts for a blog while showing at the same time linked information like the User who wrote that post. For more efficiency, it is appropriate that the User is displayed as a link to the User detail page.

ePay Integration - Bulgarian Payment Provider

Created 5 months ago by yasenTutorials2 comments – viewed 3,072 times – ( +7 )
I. In the view script add the following hidden fields:

Solution for session lose of Facebook iframe application in Internet Explorer .

Created 9 months ago by sirin kTips0 comments – viewed 3,034 times – ( +2 )
Facebook iframe app’s session is losing in Internet Explorer when doing a second redirection inside the facebook iframe app.The main reason is ,by default IE wont allow cookies in its priavacy settings If cookies not available means session is also not available for our Facebook iframe app in IE.

[pt-br] O guia de estudos do Yii para iniciantes

Created 8 months ago by Rodrigo CoelhoTips0 comments – viewed 3,029 times – ( +1 )
You can find the english version of this wiki here: The complete beginner's study guide for the Yii Framework.

Speedup unit tests by moving MySql data to memory (in Ubuntu)

Created 6 months ago by sebTips0 comments – viewed 3,023 times – ( +1 / -1 )
Speedup unit tests by moving MySql data to memory [Ubuntu]
tags: mysql, unit test

Setting static modules' properties in config

Created 8 months ago by Alexander PalamarchukTips0 comments – viewed 2,923 times – ( +2 / -2 )
You may face a situation when you need to access to a configurable module's property from everywhere and you don't have an instance of this module's class.
tags: config, module