Is there a function like $pluginsDir = sfConfig::get('sf_config_dir'); (which returns configuration directory for overall) to get directory of the specific plugin.
Lets say I have directory structure something like:
project/
config/
plugins/
myplugin/
config/
I want to get output /home/user_name/public_html/project/plugins/myplugin/config/
Symfony is shipped with a
sf_plugins_dirwhich goes to/home/user_name/public_html/project/pluginsbut that’s all.Solutions (which are almost the same) are :
1. build the path based on this config variable:
2. give it as myplugin config
In
myplugin/config/app.yml:Then: