Wiki

Articles in category "tips", sorted by viewsX
Displaying 61-70 of 133 result(s).

How to call a default layout for every module and how to work <php echo $content; ?>

Created 11 months ago by Ankit ModiTips0 comments – viewed 9,968 times – ( -1 )
Hi Friends, Hi Friends, Some common question is difficult to how to create the layout on yii and how to work

CJuiTabs Content

Created about a year ago by mbalaTips2 comments – viewed 9,899 times – ( +6 ) – version 1.1
When I used CJuiTabs I did something. They are
tags: CJuiTabs

Managing constants easily

Created 2 years ago by briiC.lvTips4 comments – viewed 9,756 times – ( +4 ) – version 1.1
For time to time i have models with constants (basicly status constants) which i use in diferent places and if these constant changes, i have to change mentions of constant in code elsewhere.

ChromePHP for Yii

Created 3 years ago by imeheszTips0 comments – viewed 9,438 times – ( +2 / -2 ) – version 1.1
ChromePHP is a console logging extension for Google Chrome.

Yii code completion and calltips in Komodo Edit

Created 3 years ago by viterTips1 comment – viewed 9,257 times – ( +6 ) – version 1.1
My favourite editor is Komodo Edit (free and crossplatform) and I use it for my everyday coding work. Just recently I found out how to make it help me to work with Yii. :) So follow these steps:
tags: Komodo Edit

Getting nulls from database instead of empty strings

Created 3 years ago by samdarkTips2 comments – viewed 8,802 times – ( +12 ) – 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

CButtonColumn and Font Awesome icons

Created 10 months ago by DerekCTips3 comments – viewed 8,712 times – ( +4 )
I was looking for a way to use Font Awsome icons instead of the default images in a CGridView -> CButtonColumn. Perhaps this will be useful to someone.

Adding 'disabled' to CCheckBoxColumn and support for yiigridview.js

Created about a year ago by Xgamer99Tips3 comments – viewed 8,538 times – ( +1 ) – version 1.1
I recently had to have a checkbox column in my grid view that supported the 'disabled' attribute. This was easy enough to do by extending the CCheckBoxColumn. However, I also wanted the checkbox to be selected when clicking on the table's row (supported via CGridView's selectableRows option). I discovered I had to tweak yiigridview.js so that it would not select disabled rows when clicking on it or on the 'select all' checkbox.

Shrink Yii, help your IDE and speed up copying

Created 2 years ago by dckurushinTips11 comments – viewed 8,248 times – ( +10 / -9 ) – version 1.1
In this little tip, I will help you to cut Yii size for about half

Directory independent extensions

Created 3 years ago by GOshaTips3 comments – viewed 8,222 times – ( +15 / -1 ) – version 1.1
Many people want to use downloaded extensions in their own way. As for me most of the extensions require me to correct Yii::import() instructions inside their source code. All these extensions are directory dependent. To avoid the situation described above, I suggest to implement pseudo-anonymous aliases: