Articles in category "tips", sorted by date (updated)X
Displaying 111-120 of 141 result(s).

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

Updated 3 years ago by dinhtrungTips2 comments – viewed 12,040 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

Updated 3 years ago by Russell EnglandTips8 comments – viewed 27,835 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

Updated 3 years ago by isekreamTips5 comments – viewed 37,182 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...

Getting nulls from database instead of empty strings

Updated 3 years ago by samdarkTips2 comments – viewed 9,409 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

A simple class to use a different db for a module

Updated 3 years ago by Maurizio Domba CerinTips2 comments – viewed 13,252 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?

Syntax check

Updated 3 years ago by Russell EnglandTips2 comments – viewed 6,369 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

Using Yii with Oracle through PDO

Updated 3 years ago by waterloomattTips6 comments – viewed 34,163 times – ( +1 ) – version 1.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 3 years ago by tydeas_drTips1 comment – viewed 13,275 times – ( +3 ) – version 1.1
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


Updated 3 years ago by Darwin WenTips2 comments – viewed 19,770 times – ( +2 / -3 ) – version 1.1
tags: module, Widgets

An easy way to use escopes and CActiveDataProvider

Updated 3 years ago by Rafael GarciaTips8 comments – viewed 22,285 times – ( +1 / -1 ) – version 1.1
Often used scopes to define criteria in our models. This is a very useful feature as it ensures that in any part of application applying the criteria defined by the scope when called it.