Wiki

Articles in category "tips", sorted by date (updated)X
Displaying 71-80 of 102 result(s).

Search method of a model for filters when using dates - unixtimestamp in database

Updated 2 years ago by jwernerTips1 comment – viewed 15,381 times – ( +10 )
I ran into a problem and on irc we worked it out. Since there is a lack on information on filters in genral i thought i'd start sharing all my findings, might be usefull for other people.

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

Updated 2 years ago by dinhtrungTips2 comments – viewed 8,440 times – ( +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

Updated 2 years ago by Russell EnglandTips7 comments – viewed 19,364 times – ( +2 / -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

Updated 2 years ago by isekreamTips4 comments – viewed 22,143 times – ( +9 / -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...

Getting nulls from database instead of empty strings

Updated 2 years ago by samdarkTips2 comments – viewed 6,832 times – ( +12 )
To get null from database instead of empty strings you need to set up your DB connection as follows:
tags: database, null

A simple class to use a different db for a module

Updated 2 years ago by Maurizio DombaTips2 comments – viewed 8,835 times – ( +8 )
What would you do if you want/need to have a different than the main database connection in an module's models?

Syntax check

Updated 2 years ago by Russell EnglandTips2 comments – viewed 4,593 times – ( +4 )
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

Using Yii with Oracle through PDO

Updated 2 years ago by waterloomattTips4 comments – viewed 18,901 times – ( +1 )
When you are developing an webapp with Yii that will be using Oracle RDBMS you should take a look at these issues in which you may run into it.

A simple action for XUpload extension

Updated 2 years ago by tydeas_drTips1 comment – viewed 9,949 times – ( +3 )
All the basic functionality for an action used by the xupload extension. Check resources for the source code of this action
tags: tips, xupload, caction

Yii实战中8个必备常用的扩展,模块和

Updated 2 years ago by Darwin WenTips2 comments – viewed 11,912 times – ( +2 / -3 )
在经过畅K网的实战后,总结一下在Yii的项目中会经常用到的组件和一些基本的使用方法,分享给大家,同时也给自己留个备忘录,下面我以代码加图片说明.
tags: module, Widgets