Articles in category "tips", sorted by ratingX
Displaying 81-90 of 153 result(s).

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

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

Putting Function To Be Called In View

Created 5 years ago by junxiongTips2 comments – viewed 34,211 times – ( +6 / -1 ) – version 1.1
Sometimes we need some complicated view to be displayed (such as generating complicated table). Most people suggest that in MVC the View must be as simple as possible (don't have too much loops, etc). So what we have to do is to hide away the complex code by putting it at somewhere else. The following are few places options to keep the function:
tags: view, render

Useful Multilanguage extensions collection and use.

Created 3 years ago by cihappyTips2 comments – viewed 6,006 times – ( +3 ) – version 1.1
What I want to achieve:

How to change the confirmation message on admingridview button and call a ajax..Dynamic

Created 3 years ago by Ankit ModiTips0 comments – viewed 15,604 times – ( +3 ) – version 1.1
Hi Friends,

Update Gridview with Dropdown Selection

Created 2 years ago by lgastmansTips1 comment – viewed 8,777 times – ( +3 ) – version 1.1
I recently worked on updating the content of a gridview based on the selection of a dropdown menu. I thought I should share it in the forum...

A simple action for XUpload extension

Created 5 years ago by tydeas_drTips1 comment – viewed 15,288 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

Adding a link to a CDataColumn

Created 3 years ago by le_topTips6 comments – viewed 15,206 times – ( +3 ) – version 1.1
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.


Created 3 years ago by hiral darjiTips1 comment – viewed 7,408 times – ( +3 ) – version 1.1
If you have two datepicker in one form and you want that a date of from date shold be minimum date of todate then put following code in Cjuidatepicker widget options array:

Expert's model generation with Gii

Created 2 years ago by le_topTips0 comments – viewed 7,427 times – ( +3 ) – version 1.1
Efficient coding with Yii implies efficient use of the code generator. This article shares the personalised Gii templates that were built starting from the standard templates proposed by AweGen.

Inline views, write less

Created 3 years ago by FirebreakerTips0 comments – viewed 5,867 times – ( +3 )
Sometimes writing views like