Wiki

Articles in category "tips", sorted by viewsX
Displaying 101-110 of 154 result(s).

Shrink Yii, help your IDE and speed up copying

Created 6 years ago by dckurushinTips4 comments – viewed 10,971 times – ( +10 / -10 ) – version 1.1
In this little tip, I will help you to cut Yii size for about half

Yiistrap TbHtml::navbarSearchForm

Created 4 years ago by PatriceTips0 comments – viewed 10,542 times – ( -1 ) – version 1.1
Hi all,

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

Created 4 years ago by le_topTips0 comments – viewed 10,475 times – ( +5 / -1 ) – 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.

Understanding series articles

Created 6 years ago by GOshaTips0 comments – viewed 10,189 times – ( +16 / -1 ) – version 1.1
Here are all wiki articles from "Understanding" series by Yii wiki contributors:

Multi Data Provider

Created 4 years ago by Sharon LavieTips0 comments – viewed 10,132 times – ( +1 / -1 ) – version 1.1
Lately, i needed to deal with the following scenario: read from two databases (db1,db2), and write to a third database (db3).

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

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

Auto-update denormalized attributes with MongoDb and Yii2

Created 3 years ago by edoardo849Tips0 comments – viewed 9,930 times – ( +1 / -1 ) – version 2.0
You have different collections in MongoDb with de-normalized attributes. As you may know, due to its not-join nature, MongoDb tends to encourage repetition of the same value in different collections (de-normalization). In this MongoDb is opposed to a more SQL-like approach where you usually reference only the ID of the value with a foreign key.

Functional tests independing from your urlManager settings

Created 7 years ago by RusAlexTips1 comment – viewed 9,856 times – ( -1 ) – 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:

How to Display tooltp(qtip) on CGridview dynamic

Created 4 years ago by Ankit ModiTips1 comment – viewed 9,723 times – ( -2 )
Hi Friends,

Building a search GET request with scenarios ; calling a SearchModel from URLs...

Created 2 years ago by Louis GacTips0 comments – viewed 9,705 times – ( +1 / -1 ) – version 2.0
Search Models are a very elegant and powerful way to build an Active Data Provider. If you use them a lot, you'll quickly need to use scenarios, which will lead you to a very DRY Controller code.
tags: search, get, Scenarios