How to make customizable Db Table prefixes using ActiveRecord

Comparing #3 with #4

Content

> Note: As of Yii 1.1.x this functionality is integrated into the framework. If you are using 1.1.x please disregard this article and use the built-in functionality.
 
 
> Note: The method described on this page involves extending Core classes to create custom functionality. This method is best used when starting new projects, but can be implemented after a product has been developed. It's just more work to do it later on.

Yii's ActiveRecord classes are powerful, but they fall short when you want to have a configurable table prefix for your application.

A configurable table prefix comes in handy if you have an application that is being built around having many instances running on the same database server.
[...]