Wiki

Articles in category "tips", sorted by viewsX
Displaying 91-100 of 149 result(s).

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

Created 2 years ago by le_topTips0 comments – viewed 7,851 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.

关于Yii CHttpSession性能优化篇之源码流程分析

Created 4 years ago by Darwin WenTips0 comments – viewed 7,845 times – ( +1 / -1 ) – version 1.1
当我们使用Yii数据库去保存Session时,只要简单的配置就可以完成这个功能,在进行性能优化这个主题之前,我们先来查看一下CHttpSession和CDBHttpSession源代码,探讨CHttpSession和CDBHttpSession的流程再进行深一步优化主题。

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

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

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

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

BaseModuleAR class with MultiActiveRecord

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

Fixing extensions without modifying their code

Created 2 years ago by schmunkTips3 comments – viewed 7,239 times – ( +6 ) – version 1.1
If you're working a lot with extensions you often stumble upon problems, when you want to include them into your custom web application, like hardcoded or absolute path aliases or classes extended from core application components, which implement addiditonal features.

Syntax check

Created 4 years ago by Russell EnglandTips2 comments – viewed 7,228 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

Reading the doc

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

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

Created 2 years ago by Rodrigo CoelhoTips0 comments – viewed 6,982 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.

Add model validator in Controller

Created 10 months ago by Kostas Apazidis (KonApaz)Tips4 comments – viewed 6,982 times – ( +1 / -1 ) – version 1.1
There are cases that model validators should be depended by controller/action and you couldn't manipulate on the model class or using scenarios in easy way