Wiki

Articles in category "tips", sorted by commentsX
Displaying 31-40 of 154 result(s).

Styling Radio Buttons

Created 6 years ago by Steve FriedlTips5 comments – viewed 53,017 times – ( +15 / -1 ) – version 1.1
The default behavior with radio button lists is ugly, and I figured out mostly how to style them a coupla different ways. I'll used the blog tutorial example (but with my own posting modes):

Integrating Yii with Wordpress

Created 6 years ago by isekreamTips5 comments – viewed 55,074 times – ( +10 / -2 ) – 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...

Managing constants easily

Created 5 years ago by briiC.lvTips4 comments – viewed 16,590 times – ( +4 / -1 ) – 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.

using multiple radio button

Created 5 years ago by francis jaTips4 comments – viewed 50,020 times – ( +9 / -2 ) – version 1.1
When we use multiple radio buttons with same name in Yii many people have the problem on getting the value of the selected radiobutton. The radioButtonList can be used for that, but if we need to use radioButton itself to place the button any where in a view, we need to include one more parameter in htmloption array().

Rendering Views and Updating them with Ajax

Created 3 years ago by Manish GuptaTips4 comments – viewed 20,712 times – ( +2 / -1 )
I wanted to implement a widget that could refresh itself through Ajax without refreshing the whole page. CGridView and CListView are excellent examples of such widgets.

Customize CGridView columns directly in your view

Created 4 years ago by clapasTips4 comments – viewed 32,292 times – ( +3 / -3 ) – version 1.1
You usually take a model instance passed into your view to provide data to a CGridView in this way:

Send asset folder path to a javascript of a widget

Created 5 years ago by sensorarioTips4 comments – viewed 23,397 times – ( +4 / -1 ) – version 1.1
When you develop a widget, you could need one image that is in the assets folder, you can use it simply within a css. You can load a css or javascript script doing this:

Using CListView to display items next to each other (in columns)

Created 4 years ago by thyseusTips4 comments – viewed 13,028 times – ( +11 / -1 )
When using CListView to display multiple views next to each other, we can use the $index variable inside the viewFile to achieve this. As far as i know there is no extension or out-of-the-box functionality for this, so we need to apply a little hack:

Shrink Yii, help your IDE and speed up copying

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

how to use github (un)official extension repo in your Yii project

Created 5 years ago by RusAlexTips4 comments – viewed 8,930 times – ( +4 / -1 ) – version 1.1
Using a git submodule command in your yii project