Yii Framework Forum: Best Practice For Creating An Admin Switchboard? - Yii Framework Forum

Jump to content

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

Best Practice For Creating An Admin Switchboard? Should I create a module? Rate Topic: -----

#1 User is offline   U4EA 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 133
  • Joined: 04-November 12

Posted 26 January 2013 - 04:19 PM

Hi folks,

I am building a private site here, so blocking access is not a concern.

The website will be based around the displaying of raw data in the SQL database. I want to build an admin section that will access to the DB through the frontend. So basically, the main menu will have "Admin" as a label then when that is clicked it will take me to the admin section and from there it will display a menu before the main menu with the options for admin i.e. show tabs I can clicked that with show views for the different database tables.

The question is... is it appropriate to create a module for this? The only functioning I think I really need would be for both the "admin" label to be set active as well as the appropriate menu label in the admin submenu.

Any thoughts?
0

#2 User is offline   outrage 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 312
  • Joined: 10-November 09
  • Location:Blackpool, United Kingdom

Posted 26 January 2013 - 04:34 PM

If there is no publicly accessible area and no real requirement to separate the admin functionality from the rest of the app, you may as well just make an admin controller.

Modules are easy to work with though, so whatever takes your fancy.
0

#3 User is offline   U4EA 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 133
  • Joined: 04-November 12

Posted 01 February 2013 - 06:15 AM

Thanks.

I might sound a bit thick here, but how do I create this so that the module nav button and the nav button for the specified controller/action are both set to active?
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