Difference between #2 and #3 of
How to make customizable Db Table prefixes using ActiveRecord

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
*/
[...]
0 0
1 follower
Viewed: 23 956 times
Version: 1.1
Category: Tutorials
Tags:
Written by: killermonk
Last updated by: killermonk
Created on: Aug 9, 2009
Last updated: 14 years ago
Update Article

Revisions

View all history