![]() |
|
sfAdminAjaxThemePlugin |
|
![]() |
1
user
Sign-in
to change your status |
The sfAdminAjaxThemePlugin is a symfony plugin to ajaxify symfony admin generator.
This plugin comes with two themes, ajaxtheme for propel 1.4 (sfPropelPlugin) and ajaxtheme15 for propel 1.5 (sfPropel15Plugin)
http://img7.imageshack.us/g/screenshot5j0.png/
Add the jQuery libary plugin in your view.yml
Install the plugin
git clone git://github.com/nibsirahsieu/sfAdminAjaxThemePlugin.git
Activate the plugin in the config/ProjectConfiguration.class.php
class ProjectConfiguration extends sfProjectConfiguration { public function setup() { ... $this->enablePlugins('sfAdminAjaxThemePlugin'); ... } }
Clear your cache
$ symfony cc
Publish the plugin's assets:
./symfony plugin:publish-assets
Generate an admin generator, for example:
./symfony --theme=ajaxtheme15 propel:generate-admin Product
If you already have an admin generator, you can simply change the theme inside your generator.yml, then clear your cache.
theme: ajaxtheme15 #ajaxtheme if you are using sfPropelPlugin
By default, this plugin come with jquery form plugin [http://malsup.com/jquery/form/], if you already have it and want to use your own, add below to your app.yml. For example:
all: jquery_form_dir: /js/jquery.form.js
That's it! You are ready now to use.
Your feedback is welcome