Yii Framework Forum: Theme Defined In Controller And Module Configuration. - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Theme Defined In Controller And Module Configuration. Rate Topic: -----

#1 User is offline   Natrio 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 26-July 13

Posted 29 July 2013 - 06:10 AM

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 ?
0

#2 User is offline   Natrio 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 26-July 13

Posted 29 July 2013 - 11:22 AM

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 ?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users