librelist archives

« back to archive

Template compiler & include block

Template compiler & include block

From:
William Martin
Date:
2012-05-15 @ 20:10
Hi,

When i add a block include into a other template, the context is
passed but not the $request object.
I call the template compileur with the class
photon\shortcuts\RenderToResponse and a valid request object.

I want to include 10+ sub template into a main one, but i really need
the $request object in each one.
Any tips about that ?

William

Re: [photon.users] Template compiler & include block

From:
Loic d'Anterroches
Date:
2012-05-16 @ 07:19
Hi,

> When i add a block include into a other template, the context is
> passed but not the $request object.
> I call the template compileur with the class
> photon\shortcuts\RenderToResponse and a valid request object.
> 
> I want to include 10+ sub template into a main one, but i really need
> the $request object in each one.
> Any tips about that ?

Can you provide a minimal case where you see this happening? A kind of
small unit test?

loïc