Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Generate BaseController and BaseModel in gii

$
0
0
I just started learning Yii. The gii is very cool. It is very useful for quick prototyping. But I am wondering why it does not generate a BaseController and a BaseModel, and then derive actual controllers/models from the base class? By doing this, we can put code that is common to all controllers/models in the BaseController/BaseModel without having to modify Yii core classes.

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?

Viewing all articles
Browse latest Browse all 18717

Trending Articles