I’m developing a Yii extension that provides CRUD functionality (via a base controller and model which can be extended) as an alternative to generating redundant controller and view files.
One advantage this extension has over using Gii-generated CRUD, is that this code supports CRUD functionality for models with multiple primary keys. Additionally, nested model relations/forms are supported as well.
This code is not complete yet, is still undergoing active development.
Check it out here:
https://bitbucket.org/intel352/yiicrud
I’ll get instructions put together later.
In the meantime, feel free to poke around.
Source is here: https://bitbucket.org/intel352/yiicrud/src/
Extension sub-dir source is here: https://bitbucket.org/intel352/yiicrud/src/412bfe2efc9e/application/protected/extensions/yiicrud/
Quick Tip:
- the example included application structure provides base Controller, CrudController, and Model that your own controllers & models should extend from. Alternatively you can extend from the extension classes directly.