Generate BaseController and BaseModel in gii
Posted 29 June 2010 - 01:03 PM
Will gii give us an option to do this in the future? Or there is already a simple way to do this without hacking into source code of gii?
Posted 29 June 2010 - 01:13 PM
About BaseModel (or BaseActiveRecord) this is not done by Gii, but you easily can make it yourserlf... just create the clase in protected/components, ej.: ActiveRecord.php (whose class must be ActiveRecord and inherit prom CActiveRecord)
And then make all your model inherit form ActiveRecord (instead of CActiveRecord)
The problem is communication! Excess of communication!
Posted 14 April 2013 - 11:23 AM
Maybe a behaviour that applies to all your models, such as Blameable?