I am speculating a bit here, but I think it works like this: - if the template/action is found in an app module, then the app module version is used - if the template/action is found in a plugin, then the plugin version is used
this suggests an order of precedence, where the app module overrides the plugin. i don't know if the inner workings automate this, but i can tell you that the sfGuardPlugin seems to work this manner (ie: you override actions and templates by creating your own version of the module. i hope this helps. cheers, steve On Apr 16, 9:11 am, "s.py" <py.stepha...@gmail.com> wrote: > Hi, > I don't know how to override templates and/or actions of a plugin > about an application. > > I created "plugins/TOTOPLUGIN/modules/TOTO" > > I have a schema.yml > > app: > TOTOPLUGIN: > modules: > mymodule1: > class: MyModule > mymodule2: > class: MyModuleTwo > > In my plugin "plugins/TOTOPLUGIN/modules/TOTO", I created a > 'config.php' which make routing for 'mymodule1' and 'mymodule2'. > We'll have routes like that: TOTOPLUGIN_%%module%% > (doctrineCollection) and other routes more specifics. > > What i would like to do is to override templates and actions of > "plugins/TOTOPLUGIN/modules/TOTO/templates /actions" about "app/" or > an other path. > > But i don't want to use on my plugin method like if(file_exists(...)) > 'x template' else 'y template' > > Do you know an issue to help me ? > > Thank you. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---