Yii framework CHtml::image() example

CHtml::image() is helper for generate HTML img tag in Yii framework. 1.Class Reference publ...

Gii generate model and CRUD for Module

Gii is a web-based code generator tool for Yii framework to help developer create new source code ea...

yii - role base access control for module

After adding source code for role base access control validation (RBAC validation )for application...

yii - customize the error message of a validation rule

Validators extending from CValidator all have a property named message. You can set this property ...

yii - register client script adding javascript & css file in view example

Yii have CClientScript package which supports us register client script like javascript and css fi...

Yii migration insert data to table

To insert data into any table using yii migration. You can use insert method of CDbMigration cl...

List of mysql column type declaration in Yii migration

Yii supports database migration via the yiic migrate command line tool. This tool supports creating ...

Yii framework - CHtml::link() example

In this post, i try to make some spaghetti code for Yii Chtml::link() method, to get familiar with...

yii Framework - calling model class from another module

Found a question from Yii framework forum. It's a bit late to answer, copy here and save my so...

Multiple Database connection in Yii framework

Some ways to use multiple database connection in Yii framework. 1. Declare more database Connection in config file To use multiple databa...

[2002] No such file or directory (trying to connect via unix:///var/mysql/mysql.sock)

I tried Yii Framework migration by using yiic in console. when yiic migrate database, it try to conn...