Advanced Application: Gii Best Practices

I want to use the Advanced Application template and I want to use Gii to generate my scaffolding code. Let’s say I have a model named Customer. I want there to be a lot of frontend code related to Customer but also some backend. Should I tell Gii to create the model in the common models or do I create it in the frontend models?

I have run into trouble with Gii when I try to create the model in the common\models area but try to create CRUD in the frontend area.

What has worked for me is if I create the models and the CRUD in frontend. However, this doesn’t seem ideal for code re-use.

Can you please advise?

You could move models afterwards. Gii has some issues with CRUD in different apps. We’ll fix it one day…