A given bundle can only have one direct child so you would have to create one child bundle per bundle you want to extend.
On May 20, 2:40 pm, Oleg Stepura <[email protected]> wrote: > Ok, it works! =) > But What if I want to override templates from different Bundles in my > own? > getParent() should return string not array accordingly to doc so no > multiple parent possible? > > On 20 май, 14:31, Lukas Kahwe Smith <[email protected]> wrote: > > > > > > > > > On 20.05.2011, at 13:24, Oleg Stepura wrote: > > > > Hi! > > > > Currently Symfony can override any resource of a Bundle by placing it > > > to the app/Resopurces/{BundleName} directory. But What if I'm writing > > > a bundle and want to override for example a default framework bundle? > > > Not inside an app, but inside my bundle. It would be very convenient > > > to place the overwritten resource to the bundle dir (Resources/ > > > {BundleName} or maybe even Resources/Override or Resorces/bundles/ > > > {BundleName} dir. > > > > Is that possible? > > > > This can lead to easier development of a design-specific bundles, for > > > example a bundle for a site Backend (not on twig) which has custom > > > form rendering templates for it (what I faced now). > > > you can extend a bundle by implementing the getParent() method in your > > bundle class > > > Lukas Kahwe Smith > > [email protected] -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.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
