Wiki

Articles in category "tips"X
Displaying 111-120 of 149 result(s).

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

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

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

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

How to ensure unicity to url

Created 4 years ago by zaccariaTips3 comments – viewed 11,583 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 4 years ago by bingjie2680Tips2 comments – viewed 13,026 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 4 years ago by dinhtrungTips0 comments – viewed 7,260 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 4 years ago by dinhtrungTips2 comments – viewed 12,638 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 4 years ago by Russell EnglandTips8 comments – viewed 29,802 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.

Integrating Yii with Wordpress

Created 4 years ago by isekreamTips5 comments – viewed 41,206 times – ( +10 / -1 ) – version 1.1
Well I finally had some time and tinkered a bit with the notion of integrating wordpress and Yii. Now for me I wanted to use Yii as a framework to develop wordpress plugins. Using some tips from imasia Article I was able to do a simple integration of yii as a wordpress plugin. The integration was very basic and i just used yii with its default installation site. I don;t know how it will really react with CRUD application as yet but it was fairly easy to integrate after reading the article...

A simple class to use a different db for a module

Created 4 years ago by tydeas_drTips2 comments – viewed 14,581 times – ( +9 ) – version 1.1
What would you do if you want/need to have a different than the main database connection in an module's models?

Getting nulls from database instead of empty strings

Created 4 years ago by samdarkTips2 comments – viewed 10,155 times – ( +13 ) – version 1.1
To get null from database instead of empty strings you need to set up your DB connection as follows:
tags: database, null