Ok, thank you again, Stof! With Symfony2 you should forget everything what you could do with sfComponent.
(Within components you can override slots of main layout. ) I have to re-think the architecture of the templates. What is the preferred way of implementation for my problem, Stof? FAbian On Aug 19, 12:37 pm, Christophe COEVOET <s...@notk.org> wrote: > Le 19/08/2011 12:31, Fabian Spillner a crit :> Thank you, Stof! > > > As excepted but would this work without ESI caching? > > > If not, what's the preferred way to implement such requirement: > > > 1) the sub-controller makes some business logic and returns it's > > template > > 2) this template has to override some blocks of main layout > > > Fabian > > It does not work either when ESI is not used. The process is the same: > you do a subrequest and receive the response, putting it in this place. > The only difference between ESI or not ESI is who does the subrequest > and the replacement. In one case, it is done by Varnish, in the other > case it is done directly when rendering the template. > The subrequest does not returns its template, it returns a Response > (generally some HTML code but it could potentially be a JSON response, > even if such a case would be hard to handle in Twig) > > -- > 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 symfony-devs@googlegroups.com To unsubscribe from this group, send email to symfony-devs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en