Wiki

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

Integrating Wordpress and Yii: yet another approach

Created about a year ago by goncinHow-tos8 comments – viewed 11,633 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,655 times – ( +16 )
With Yii you can use one CActiveForm for collecting data for two or more models with ajax validation and client validation.

Creating a Simple CRUD App With Yii2

Created 15 days ago by Charles R. Portwood IITutorials8 comments – viewed 5,705 times – ( +5 / -3 )
Getting Started With Yii Framework 2. A Basic Tutorial
tags: yii2, tutorial, howto

Special $variables in CGridView and CListView

Created about a year ago by Steve FriedlTips8 comments – viewed 21,766 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,542 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,144 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,119 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.

CGridView: Render customized/complex datacolumns

Created about a year ago by JobloTips7 comments – viewed 57,049 times – ( +55 )
If you have to display a overview of related data in a table, you can use the CListView, create your view with table/tr/td tags and implement db-queries in the view to display detaildata of the current (master-)record.
tags: CGridView

Accessing data in a join table with the related models

Created about a year ago by fsbHow-tos7 comments – viewed 35,921 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,325 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.