Hi, On Oct 7, 10:32 am, gagnezplus <[EMAIL PROTECTED]> wrote: > > I want to use the plug in sfSimpleCMSPlugin version 1.1 of symfony > outside this plugin is currently not compatible with 1.1. I tried to > force install but without success, this is my error: > > Fatal error: Call to undefined method sfRouting:: getInstance () in C: > \ wamp \ www \ sveltance \ plugins \ sfSimpleCMSPlugin \ config \ > config.php on line 5 >
I've fixed that error following the instructions on [1] and changing the 'sfLoader::getTemplateDir' for 'ProjectConfiguration::getActive()- >getTemplateDir' on 'modules/sfSimpleCMS/lib/ BasesfSimpleCMSActions.class.php', you can see a patch with those changes on http://dpaste.com/hold/85689/ Now the plugin loads the page but the template now raise this error: Fatal error: Call to a member function getSlug() on a non-object in sfSimpleCMSPlugin/modules/sfSimpleCMS/templates/_mainNavigation.php on line 3 In the action 'show' on 'BasesfSimpleCMSActions' $page is set with a not null value but in the template the variable has a null value, no idea why this happen. Any clue? Am I missing something in the migration to sf1.1? [1] http://www.symfony-project.org/book/1_1/17-Extending-Symfony#Plug-In%20Abilities Thanks, - Cinxgler M www.emya-informatica.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en -~----------~----~----~----~------~----~------~--~---
