Theme Defined In Controller And Module Configuration.

Hi all,

I’m new to Yii and PHP. I come from Rails, so may be I have some ruby/rails reflex.

Here my question :

I need a frontend and backend, so i follow this guide : Implementing a Registration Process using the yii-user-management module.

Then I install Yii User Management. The module works and I follow this guide : Implementing a Registration Process using the yii-user-management module.

I defined some properties in my components/controller, especially the layout and theme, since my layout and theme will be diffreente frome backend and frontend.

I did the :


class RegistrationController extends YumRegistrationController {} 

And it’s works well, but I want some propreties defined in componente/controller too.

How can I do that ? I think to multiple inheritance (it seems to be not possible in PHP) ? Or module configuration ? Or ?

As far as I understand, I should use a behavior.

So, how can I use it in a controller ? I don’t realy undertand how its works.

PS. Now my question goes to behavior operating, should I move this topic ?