On 28 Feb., 16:10, "Matthias N." <[email protected]> wrote: > Hi, > > I have a plugin "myPlugin" created by the task from sfTaskExtraPlugin. > This contains a test project in test/fixtures/project. > > I created a config handler but when I configure it in myPlugin/config/ > config_handlers.yml I get the following exception: > > sfParseException: Configuration file "....myPlugin/config/ > config_handlers.yml" specifies class "myConfigHandler" with > nonexistent or unreadable file "...myPlugin/test/fixtures/project/ > plugins/myPlugin/lib/config/myConfigHandler.class.php" > > The exception is thrown in sfRootConfigHandler->execute( ) > I suppose the reason is that it doesn't take into account that the > plugin was enabled using setPluginPath() by the test project so it > searches the class at the wrong location. > > This is a generic version of my config_handlers.yml: > > foo.yml: > class: myConfigHandler > file: %sf_plugins_dir%/myPlugin/lib/config/myConfigHandler.class.php > > Should I create a ticket or do I miss something?
Hm.. the solution is as easy as changing "file" to this: file: <?php echo dirname(__FILE__) ?>/../lib/config/ myConfigHandler.class.php which now works fine ;-) regards, Matthias --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" 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-users?hl=en -~----------~----~----~----~------~----~------~--~---
