Best way to implement symfony admin components
- by Chris T
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.