stof,

You are absolutely right, sorry for the confusion.

So my first message should be:

What should be the result of locateResource('@Parent/Resources/views/
tpl.html.twig', '<app>/Resources', false) ?
A. [ChR, PaR, ChB, PaB]
B. [ChR, ChB, PaR, PaB]

And the 2 points of my last message are not valid.

Cheers,
Victor



On Mar 29, 8:14 pm, Christophe COEVOET <[email protected]> wrote:
> Le 29/03/2011 19:52, Victor Berchet a crit :
>
>
>
>
>
>
>
> > My first message is probably lacking a higher level description.
> > So the goal is:
> > 1. To be able to use resource overriding in<app>/Resources folder as
> > this is currently the case in<Bunlde>/Resource folders,
> > 2. To get the resource (from either<app>  or<Bundle>) in a single
> > call.
>
> > One downside I forgot to mention:
>
> > With the proposed implementation, files must be located under a
> > Resources folder inside<app>/Resources/<Bundle>
> > i.e.<app>/Resources/<Bundle>/Resources/...
>
> > I don't see this as an issue and there are probably means to change
> > this if needed.
>
> > @stof:
>
> > 1. @Child could use (PaR) if the template is not overridden by the
> > children (either in the bundle or app folder).
> > 2. Actually locateResource('@Child...') and
> > locateResource('@Parent...') should return the same file, this is how
> > you can override a resource.
>
> No. @Child should not return a template coming from the ParentBundle as
> you are explicitly asking for a template of the ChildBundle.
>
> The inheritance defines ChildBundle as overwriting ParentBundle when
> asking for @Parent but it does not define ParentBundle as a fallback for
> all template of ChildBundle which are asked using @Child.
>
> --
> Christophe | Stof

-- 
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

Reply via email to