Yii Framework Forum: Generalized Admin Extension? - Yii Framework Forum

Jump to content

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

Generalized Admin Extension? Rate Topic: -----

#1 User is offline   queej 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 71
  • Joined: 04-February 10

Posted 05 June 2010 - 07:56 PM

Yii seems a natural candidate for a generalized admin extension that creates listing admin editors and forms by examining the DB for tables and columns.

Is anyone aware of such an extension that already exists? If not, is anyone else interested in such an extension if it were developed?
0

#2 User is offline   tydeas_dr 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 158
  • Joined: 16-April 10
  • Location:Greece

Posted 06 June 2010 - 06:33 AM

Didn't not understood what you trying to say ? :S
Follow me on twitter @dmtrsslvdr
Check my *new* blog @ tumblr
0

#3 User is offline   queej 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 71
  • Joined: 04-February 10

Posted 07 June 2010 - 01:23 PM

View Posttydeas_dr, on 06 June 2010 - 06:33 AM, said:

Didn't not understood what you trying to say ? :S

Didn't do a very good job of explaining it, did I?

What I'm thinking of is a page that would respond to /admin. On that page would be a listing of tables in the DB, derived from metadata queries. Clicking on a table would drill down to a record browser listing for that table, with toolbar buttons on the right, much like the current /model/admin tools.

The big difference is that there would be one AdminController and (essentially) six protected/views/admin sources:

1) index.php, which is the listing page
2) browse.php, which lists the records
3) update.php, which allows for creating/editing
4) _form.php, which presents the viewing form for a single record
5) _item.php for the index page item detail
6) _browseitem.php for the browse row detail

This would result in a generalized admin interface that works a bit like the phpPgAdmin and pgAdmin tools, but tied specifically to your app.
0

#4 User is offline   zitter 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 140
  • Joined: 14-July 09

Posted 07 June 2010 - 01:34 PM

I think the best way to solve that is to create anothere app, called "admin". In that application you can define config values, model, controllers, views, extension and so on and of course you can add a dedicated RBAC.
look at this, HTH:
http://www.yiiframew...oc/cookbook/33/
0

#5 User is offline   queej 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 71
  • Joined: 04-February 10

Posted 07 June 2010 - 01:39 PM

View Postzitter, on 07 June 2010 - 01:34 PM, said:

I think the best way to solve that is to create anothere app, called "admin". In that application you can define config values, model, controllers, views, extension and so on and of course you can add a dedicated RBAC.
look at this, HTH:
http://www.yiiframew...oc/cookbook/33/

Cool way to do it. Thanks for the link. I'm wondering if it has already been done somewhere? If not, I'll probably attempt it, but it won't be until the September timeframe, most likely, after a current deliverable goes out.
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