Flipkart

Monday, February 22, 2010

installing symfony plugins

To install any plugin in symfony you have to use command line interface. Here is an example how to install symfony plugins (here we’re using ‘sfGuardPlugin‘ installation) using command line interface:
1) Linux :   ./symfony plugin:install sfGuardPlugin
2) Windows:  php symfony plugin:install sfGuardPlugin

One more thing, if you are not having pear installed you won’t be able to install a symfony plugin through command line interface. In this case there is one more way to install symfony plugin which is given as below:
Download the plugin and extract it to the /plugin directory (folder) of the project. Now just run the following command from the command line interface:
1) Linux: ./symfony plugin:publish-assets

2) Windows: php symfony plugin:publish-assets
but before running this command you have to enable that plugin in the applications setting.yml file as below:
enabled_modules:        [default, sfGuardGroup, sfGuardUser, sfGuardPermission]
here we have enabled the sfGuardGroup, sfGuardUser and sfGuardPermission plugins.

hope this will help you out

No comments:

Post a Comment