Wiki

Articles in category "tips"X
Displaying 81-90 of 122 result(s).

Display a nice exception message on ajax requests

Created 2 years ago by Maurizio Domba CerinTips3 comments – viewed 22,618 times – ( +12 ) – version 1.1
When an exception is thrown in our code like
tags: error, exception

Guidelines for good schema design

Created 2 years ago by Steve FriedlTips13 comments – viewed 51,586 times – ( +138 ) – version 1.1
Virtually all Yii applications are built on top of a database, and though Yii is very flexible in how it addresses your DB, some design choices make things more convenient than others.

an easy way to required multi columns(At least one cannot be blank)

Created 2 years ago by 1065227709Tips0 comments – viewed 4,474 times – ( +1 ) – version 1.1
in model add the following code:
tags: rules

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

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

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

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

How to ensure unicity to url

Created 2 years ago by zaccariaTips3 comments – viewed 9,996 times – ( +14 ) – version 1.1
Many time for SEO porpouses is important that each page will have a unique address.
tags: SEO, unique, URL

adding class and links to Ctreeview node

Created 2 years ago by bingjie2680Tips2 comments – viewed 10,620 times – ( +4 ) – version 1.1
This article will show you how to add links and class to each node in ctreeview. so you can attach events in js by obtaining handler on anchor or class.
tags: ctreeview, link, class

BaseModuleAR class with MultiActiveRecord

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

Using MBMenu and Rights to automatically create menu item for your modules

Created 2 years ago by dinhtrungTips2 comments – viewed 10,799 times – ( +1 / -1 ) – version 1.1
Using Rights generator component, we can easily create a dynamic menu, in which we scan every modules' controllers, to access the index page of them.

Using CJuiDialog to edit rows in a CGridView

Created 2 years ago by Russell EnglandTips8 comments – viewed 25,119 times – ( +4 / -1 ) – version 1.1
I have a CGridView with a list of clients/events. For each row (EventClient) I wanted a quick edit dialog.