Wiki

Articles in category "tips", sorted by commentsX
Displaying 21-30 of 99 result(s).

An Easy Solution for Dependent dropDownList Using AJAX

Created 5 months ago by mrsTips6 comments – viewed 13,521 times – ( +6 )
Sometimes new Yii guys face problem to manage dependent dropDownList using AJAX. I am going to discuss an easy solution about this issue.

1:n relations sometimes require CDbCriteria.together

Created about a year ago by fsbTips4 comments – viewed 13,863 times – ( +13 )
There are situations in which Active Record will generate nonsense queries from what a nieve Yii user might think is reasonable code. One such situation is a CActiveDataProvider using CDbCriteria to get data from parent and 1:n child table with a condition on the child table.

Managing constants easily

Created about a year ago by briiC.lvTips4 comments – viewed 6,167 times – ( +4 )
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.

Change buttons on our CGridView extending yii

Created about a year ago by sensorarioTips4 comments – viewed 13,642 times – ( +9 )
In this tip, I'll help you to change in few second buttons of your CGridView. I hope you like it =).

Troubleshooting Rights Extension

Created about a year ago by junxiongTips4 comments – viewed 10,435 times – ( +4 )
Rights is one of user interface for Yii's Role Base Access Control extension. It is one of most downloaded extensions in Yii's Web.

Integrating Yii with Wordpress

Created about a year ago by isekreamTips4 comments – viewed 21,384 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...

Adding a link to a CDataColumn

Created 2 months ago by le_topTips4 comments – viewed 2,703 times – ( +3 )
Backoffice Grid Views often list information like Posts for a blog while showing at the same time linked information like the User who wrote that post. For more efficiency, it is appropriate that the User is displayed as a link to the User detail page.

Avoiding duplicate script download when using Ajax calls to render different Views

Created about a year ago by Antonio RamirezTips4 comments – viewed 10,922 times – ( +10 )
I had to partially render two types of views, depending on user selection. Wanted to display a GRID or a LIST style with an event that AJAX'ed new contents and update a layer with them.
tags: tutorial, AJAX, views

Send asset folder path to a javascript of a widget

Created about a year ago by sensorarioTips4 comments – viewed 10,062 times – ( +4 )
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:

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

Created about a year ago by RusAlexTips4 comments – viewed 5,299 times – ( +4 )
Using a git submodule command in your yii project