I have faced serious difficulties while installing sfJqueryTreeDoctrineManagerPlugin to Symfony 1.4 w/ Doctrine ORM. The installation directly from the server did not work out like with previous plugins that I have installed:
C:\path>symfony plugin:install sfJqueryTreeDoctrineManagerPlugin
plugin installing plugin "sfJqueryTreeDoctrineManagerPlugin"No release available for plugin "sfJqueryTreeDoctrineManagerPlugin"
This is why I needed to install the plugin by downloading the tgz-archive and install it manually like this:
C:\path>symfony plugin:install "C:\path\to\downloads\sfJqueryTreeDoctrineManagerPlugin-1.2.4.tgz"
plugin installing plugin "C:\path\to\downloads\sfJqueryTreeDoctrineManagerPlugin-1.2.4.tgz"sfSymfonyPluginManager Installing web data for plugin
I guess everything should be fine this far?
After that I edited \apps\admin\config\settings.yml like instructed in the plugins readme file.
all:
.settings:
enabled_modules: [default, sfJqueryTreeDoctrineManager]
I also checked that the plugin was enabled in \config\ProjectConfiguration.class.php like this:
$this->enablePlugins(array(
// other plugins,
'sfJqueryTreeDoctrineManagerPlugin'
));
I published assets and cleared cache:
C:\path>symfony plugin:publish-assets
>>
plugin Configuring plugin - sfJqueryTreeDoctrineManagerPlugin
C:\path>symfony cc
Finally I added the required helper to the newly created apps\admin\modules\category\templates\indexSuccess.php
<?php
use_helper("sfJqueryTreeDoctrine");
echo get_nested_set_manager("Category", "name");
When loading the page I unfortunately get the following error:
500 | Internal Server Error | InvalidArgumentException
Unable to load "sfJqueryTreeDoctrineHelper.php" helper in: SF_ROOT_DIR\apps\admin\modules/businessunitgroup/lib/helper, SF_ROOT_DIR\apps\admin\lib/helper, SF_ROOT_DIR\lib/helper, SF_SYMFONY_LIB_DIR/helper.
The file sfJqueryTreeDoctrineHelper.php exists indeed but not in any previously mentioned folder. The file can only be found in the folder \plugins\sfJqueryTreeDoctrineManagerPlugin\lib\helper. I guess that Symfony doesn't look to that folder while finding helpers?
I have tried to move the helper file to one of the previously mentioned folders. As expected, that changes the error. Now I get:
500 | Internal Server Error | sfConfigurationException
The component does not exist: "sfJqueryTreeDoctrineManager", "manager".
Unfortunately I can't figure out how should I be able to retrieve the "missing" component from the correct folder.
I would be very grateful for any advice to help me forward.
By the way, I am aware that there are other nested-set / tree plugins available for Symfony (like sfDoctrineTreePlugin and caPropelTreePlugin) but unluckily those are either uncompatible or too limited for my needs.