Wiki

Sorted by commentsX
Displaying 71-80 of 467 result(s).

Update content in AJAX with renderPartial

Created 3 years ago by BurzumTutorials8 comments – viewed 86,325 times – ( +49 )
The easiest way to update content in AJAX is to use the renderPartial method.
tags: AJAX

Exporting CGridView results to CSV file

Created about a year ago by RusAlexTutorials8 comments – viewed 15,566 times – ( +6 / -2 )
A few days ago, i worked for CGridView exporting functional for my client. He asked me to create a simple exporting to a CSV file a CGridView search results.
tags: cgridview, export, csv

Creating a database-driven hierarchical Structure combined with CMenu and superfish

Created 3 years ago by thyseusTutorials8 comments – viewed 28,569 times – ( +15 )
Note: Please also take a look at the newer EMenu extension. This works even better that the deprecated CDropDownMenu!
tags: menu

Multiple-database support in Yii

Created 2 years ago by Steve FriedlHow-tos8 comments – viewed 35,825 times – ( +19 )
The customary configuration of a Yii application includes just a single database section in the protected/config/main.php file, but it's easy to extend this to support more than one, tying each Model to one of the databases.
tags: Database

Creating and updating model and its related models in one form, inc. image

Created 8 months ago by BoazHow-tos8 comments – viewed 14,231 times – ( +5 / -2 )
We start slowly and simple...

Displaying, sorting and filtering HasMany & ManyMany relations in CGridView

Created 8 months ago by yJeroenTutorials8 comments – viewed 16,275 times – ( +11 )
This tutorial gives you multiple options of how to fully implement showing, sorting and filtering related data in gridviews.

How to use a Widget as an Action Provider

Created 2 years ago by Antonio RamirezHow-tos8 comments – viewed 18,204 times – ( +22 )
As written on the API docs: An Action Provider Widget is a widget that has declared several actions by using its 'public static function actions()'. After, a Controller can easily import all its declared actions on its 'public function actions()'.
tags: Widgets, CAction

Create your own Validation Rule

Created 2 years ago by nickcvHow-tos8 comments – viewed 61,983 times – ( +58 )
Some times the core validation rules provided by Yii won't satisfy all your needs, so you'll need to create your very own validation rule.

An easy way to use escopes and CActiveDataProvider

Created 2 years ago by Rafael GarciaTips8 comments – viewed 13,878 times – ( +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.

Using Grunt for deploying client scripts

Created 2 months ago by Chris83How-tos8 comments – viewed 3,194 times – ( +5 )
For a long time I have struggled to find a suitable tool for doing server tasks such as compiling LESS files, concatenating and minifying of JavaScript files and copying the minified JavaScript files. While most of these tasks can be done with Yii extensions I would still not recommend using them because it requires you to include these extensions in your project, and therefore also deploying them in your production environment.