I always read this chapter, but maybe I didn’t understand it …
I understand the MVC well, so link between controller - model - database table too.
I always use a seperate controller class like described in the yii guide (possibility 2).
But I also read the following:
"Writing class-based actions, we can organize an application in a modular fashion. For example, the following directory structure may be used to organize the code for controllers:"
May be, not must.
However, I desided to generate a controller class for every database table. Hope that fits with the "spirit" of yii and
For example, my Project controller has a Project model and performs operations on my ProjectMember model (which doesn’t have a controller of it’s own).
It depends on what controller you will want to perform actions with and using what.
There’s no harm in generating controller, though.
Maybe you’ll refactor them away when you develop you application realising you’re not using them.
Just try some stuff, and you’ll get the hang of it.