Wiki

Sorted by ratingX
Displaying 31-40 of 483 result(s).

Configuring PhpStorm IDE for Yii

Created 2 years ago by samdarkTips13 comments – viewed 44,141 times – ( +52 / -1 )
In order to be able to get from render or renderPartial to the view, from widget to widget class, from relations to model classes you need to install additional plugin called YiiStorm.
tags: IDE, PhpStorm

How to use nested DB transactions (MySQL 5+, PostgreSQL)

Created 3 years ago by mindehHow-tos4 comments – viewed 13,528 times – ( +34 )
Original source code and idea are from: PHP, PDO & Nested Transactions.

Uploading multiple images with CMultiFileUpload

Created 2 years ago by rsinghHow-tos11 comments – viewed 44,215 times – ( +33 )
"The documentation for CMultiFileUpload isn't clear!"

Yii Related Sites

Created 2 years ago by jacmoeOthers1 comment – viewed 32,167 times – ( +31 )
This is a list of blogs, off-site tutorials and other resources about Yii.

Single table inheritance

Created 2 years ago by samdarkHow-tos6 comments – viewed 14,263 times – ( +31 )
Relational databases do not support inheritance so if we need to represent it, we have to somehow store meta info while keeping performance by minimizing JOINs. One way to solve this problem is using single table inheritance. All fields for the whole class tree are stored in a single table. Class name is stored in the type field of the same table.

CGridView, CListView and CActiveDataProvider

Created 9 months ago by softarkTutorials11 comments – viewed 35,109 times – ( +30 )
CGridView (or CListView) together with CActiveDataProvider is a very powerful combination of the built-in tools of Yii. But how do they work together to accomplish their fantastic functions? And what are you expected to do to use them and to customize their behaviors? This article explains the very basics of them.

Actions code reuse with CAction

Created 2 years ago by Antonio RamirezHow-tos13 comments – viewed 18,098 times – ( +30 )
We all know how good 'gii' automates the code for us and we normally tend to be happy with what that tool offers at the beginning of our Yii learning curve. But as soon as you start working in larger and larger projects, you realize that its code is too repetitive to maintain and having a small pitfall in general actions means to go over and over through them to fix the issues.
tags: CAction, Tutorial

XUpload Workflow

Created 11 months ago by AsgarothTutorials18 comments – viewed 21,949 times – ( +28 )
This wiki describes a more complex workflow using the XUpload widget

Code style

Created 2 years ago by zaccariaTips2 comments – viewed 10,580 times – ( +28 )
Often, when writing widgets or editing Yii code, it is unclear whether or not the code is following the MVC pattern.
tags: mvc

Javascript and AJAX with Yii

Created 8 months ago by François GannazHow-tos2 comments – viewed 35,957 times – ( +28 )
This page intends to provide an exhaustive guide of how to use Javascript (JS) in Yii. It does not explain how to learn coding in JS, but how to deal with it "the Yii way".
tags: javascript, AJAX