Best way to implement symfony admin components

Posted by Chris T on Stack Overflow See other posts from Stack Overflow or by Chris T
Published on 2010-05-15T22:16:09Z Indexed on 2010/05/15 22:20 UTC
Read the original article Hit count: 199

Filed under:
|

I am coding a backend in symfony using the sfThemePlugin (part of sympal). The dashboard should allow for new "admin plugins" to be added fairly easily. What I'd like is to have a config.yml config like this:

sf_easy_admin_plugin:
  enabled_admin_dashboard_plugins: [Twitter, QuickBlogPost, QuickConfig]

and when these are set it includes the correct components into the template. I'd like to have each one be in it's own plugin (sfTwitterEasyAdminModule, sfQuickBlogPostEasyAdminModule) or have them all bundled in one (sfEasyAdminModules). Is there anyway to accomplish this? As far I know symfonys include_component() only let's you include components from the current module and not from other plugins.

Each "component" or admin plugin should render an icon for the dashboard and a html form that will be hidden until the user clicks the icon.

© Stack Overflow or respective owner

Related posts about php

Related posts about symfony