On Thu, 2007-08-30 at 14:23 +0200, Raymond Bosman wrote:
> Hi,
>
> I added the solutions mentioned in the previous mails to the proposal. Here
> are the new solutions and a new evaluation. Please, check if it is correct.
>
> The "context" proposal is not included. Frederik or Kore can you give me an
> example? Please, keep in mind that the word "context" may be confusing
> because we use that to set the target output to: HTML or text.
>
> Attached is the proposal.
>
> =====
>
>
>
> Solution 6: Struct like variable passed on
> ------------------------------------------
> The variables send to the first template can be packed in one structure. For
> example the user application sends:
>
> $t = new ezcTemplate();
> $t->send->structure = new ezcTemplateVariableCollection();
> $t->send->structure->a = 1;
> $t->send->structure->b = 2;
> $t->process("p");
>
> Template p and q are:
>
> Template p:
> {use $structure}
> {include "q" send $structure}
>
>
> Template q:
> {use $structure}
> {$structure->a}
> {$structure->b}I still like this solution best, because you don't even need to create something like ezcTemplateVariableCollection - you could just use some stdObject, or some random structure defined in your application. -- Mit freundlichen Grüßen / Med vennlig hilsen Kore Nordmann (GPG: 0xDDC70BBB) eZ Components Developer eZ systems Headquaters tel +49 (0) 231-9742-7750 | fax +49 (0) 231-9742-7751 [EMAIL PROTECTED] | eZ systems | ez.no
signature.asc
Description: This is a digitally signed message part
-- Components mailing list [email protected] http://lists.ez.no/mailman/listinfo/components
