Revision #3 has been created by killermonk on Aug 11, 2009, 12:18:43 AM with the memo:
changing a static variable reference to a local variable reference
« previous (#2) next (#4) »
Changes
Title
unchanged
How to make customizable Db Table prefixes using ActiveRecord
Category
unchanged
Tutorials
Yii version
unchanged
Tags
unchanged
Content
changed
[...]
// Fetch prefix
$this->tbl_prefix = Yii::app()->params['tablePrefix'];
}
// Prepend prefix, call our new method
return (self::$$this->tbl_prefix . $this->_tableName());
}
/**
* Function for child classes to implement to return the table name associated with it
*/[...]