Wiki

Articles in category "tips", sorted by viewsX
Displaying 81-90 of 134 result(s).

Functional tests independing from your urlManager settings

Created 3 years ago by RusAlexTips1 comment – viewed 7,421 times – version 1.1
If you are testing your app and use urlManager in your config, sometimes you will find a problem: you want to test your site independing from urlManager settings. in that way you need to extend your WebTestCase class by this method:

mysql performance tip

Created 2 years ago by sirin kTips6 comments – viewed 7,143 times – ( +2 / -1 ) – version 1.1
When we are doing an insert of huge no.of rows into an SQL table ,Normally we will try to write separate insert quries this may lead us to a long duration of execution time and we can increase the speed of executing SQL quries by adding all the rows into a single insert query.
tags: mysql

Using sub query for doubletts

Created 2 years ago by mbTips3 comments – viewed 7,119 times – ( +1 ) – version 1.1
find doubletts by db fields. in this example i will check doublets for 3 tabelfields (col1,col2,col3). so i will get a subquery with the condition, select and grouping of the tablefields. the having with COUNT() > 1 means: find all records more then one result.

how to use github (un)official extension repo in your Yii project

Created 2 years ago by RusAlexTips4 comments – viewed 7,000 times – ( +4 ) – version 1.1
Using a git submodule command in your yii project

BaseModuleAR class with MultiActiveRecord

Created 3 years ago by dinhtrungTips0 comments – viewed 6,662 times – ( +2 ) – version 1.1
MultiActiveRecord is an extension that add support for multiple database connection for your application.

Yii CDBHttpSession数据库存储session性能优化实战

Created 3 years ago by Darwin WenTips0 comments – viewed 6,535 times – ( +1 / -1 ) – version 1.1
上一篇 关于 Yii CHttpSession性能优化篇之源码流程分析 有详细分析CHttpSession执行流程,在了解CHttpSession的详细执行流程之后,我们就可以非常轻松的扩展Yii Session,来优化和符合自己的业务流程。

Reading the doc

Created 3 years ago by zaccariaTips0 comments – viewed 6,519 times – ( +21 ) – version 1.1
Almost all the information you need whilst working with yii is written in the Class Reference.
tags: doc

CGridView: Adding behaviors from configuration, and template items from behaviors to CGridView

Created about a year ago by le_topTips0 comments – viewed 6,458 times – ( +5 ) – version 1.1
Changing the way a CGridView is rendered from the configuration file, or through behaviors specified at the moment it is used, is handy to extend a CGridView without creating tons of different classes for it. I am surprised that this is not in the default implementation, so I made my default CGridView implementation.

Syntax check

Created 3 years ago by Russell EnglandTips2 comments – viewed 6,084 times – ( +4 ) – version 1.1
So I've been busy making lots of modifications to my views/models/controllers - came to test the app and got a blank screen. Nothing in the application.log file so must be a syntax error somewhere... But which file?
tags: php, syntax

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

Created about a year ago by Rodrigo CoelhoTips0 comments – viewed 5,729 times – ( +1 ) – version 1.1
You can find the english version of this wiki here: The complete beginner's study guide for the Yii Framework.