Wiki

Sorted by commentsX
Displaying 81-90 of 470 result(s).

An easy way to use escopes and CActiveDataProvider

Created 2 years ago by Rafael GarciaTips8 comments – viewed 13,958 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,280 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.

Integrating Wordpress and Yii: yet another approach

Created about a year ago by goncinHow-tos8 comments – viewed 11,712 times – ( +8 / -2 )
It seems many people is trying to make Wordpress and Yii work together. I got stuck with the same problem, but now I think I have achieved doing it, after a lot of hard thinking and many work hours spent.

How to use single form to collect data for two or more models (CActiveForm and Ajax Validation edition)

Created about a year ago by RusAlexHow-tos8 comments – viewed 23,879 times – ( +16 )
With Yii you can use one CActiveForm for collecting data for two or more models with ajax validation and client validation.

Special $variables in CGridView and CListView

Created about a year ago by Steve FriedlTips8 comments – viewed 22,031 times – ( +18 / -1 )
The popular CListView and CGridView widgets each take a data provider and iterate over each data object produced, calling the user's code to render each row one at a time, and most are familiar with the use of the $data variable to represent the current model object or array.

CGridView: Display the full record (actionView) in a CJuiDialog

Created about a year ago by JobloTips7 comments – viewed 21,762 times – ( +13 )
If you show a model (with a lot of attributes) partially in a CGridView, it can be helpful when the user can take a quick look at the full record with all attributes without displaying the view as a page and afterwards returning back to the gridview.

How to automate timestamps in ActiveRecord models

Created 4 years ago by dalipTutorials7 comments – viewed 57,717 times – ( +25 )
There are many ways to automate the setting of timestamps in yii ActiveRecord models. Three are presented here:

How to learn Yii?!

Created about a year ago by yJeroenTutorials7 comments – viewed 37,453 times – ( +16 )
Here is a step by step To-Do list for Yii beginners. The list is an advice of what tutorials and documentation you can walk through to get a full understanding of the Yii Framework. These can be a help to learn Yii.

Accessing data in a join table with the related models

Created about a year ago by fsbHow-tos7 comments – viewed 36,356 times – ( +18 / -1 )
Sometimes the right place to store application data is in a join table. For example, movie viewers either like or don’t like the movies they watched.

Behaviors & events

Created 3 years ago by pestaaTutorials7 comments – viewed 48,949 times – ( +39 )
These features provide endless possibilities and unbelievable flexibility, but as current documentation does not give more than a few examples, it might be difficult to fully understand their internals and requirements.