Hi Steven,
all renderers work the same now. That means the default behavior is
that template variables are put into an array called "template":
{$template.someVar}
You can change the name of that variable by putting
<parameter name="var_name">tpl</parameter> into the <renderer> block,
or you use <parameter name="extract_vars">true</parameter> to have
the behavior you expected.
Slots are now available via a separate variable, by default called
"slots", not in $template anymore. Slots cannot be extracted like
variables.
David
P.S: you now do $this->setAttribute('someVar', 'value'); in the
action, and that gets automatically assigned to the view, and thus to
the template. no need anymore to toss variables around by hand using
$request->setAttribute/getAttribute().
Am 26.02.2007 um 12:14 schrieb [EMAIL PROTECTED]:
> Hi,
>
> I'm trying to use Smarty but for some reason it doesn't work :-(
> I haven't used Agavi for a long time so there might be some changes in
> this area.
>
> In 0.9.0 I used to do a
> $this->setAttribute('someVar', 'someVal');
>
> in the View (I put this into executeHtml()). In the tpl-file I
> displayed
> this variable by a simple
> {$someVar}
>
> This doesn't work now...the page is shown correctly except for the
> variables.
>
> My output_types.xml looks like this:
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <configurations>
> <configuration>
> <output_types default="html">
> <output_type name="html">
> <renderers default="smarty">
> <renderer name="smarty"
> class="AgaviSmartyRenderer">
> </renderer>
> </renderers>
> ...
> </output_type>
> </output_types>
> </configuration>
> </configurations>
>
> In config.php I set a define SMARTY_DIR to smarty's directory.
>
> --
> mit freundlichen Grüßen
> Steven Weiß
>
>
> -----------------------------------------------
> Steven Weiß
> code-factory - Softwareentwicklung, Datenbanken
>
> Seeweg 1
> 79336 Herbolzheim
>
> Telefon: (0 76 43) 30 20 09
> Handy: (0 163) 285 77 92
> [EMAIL PROTECTED]
> http://www.code-factory.de
> -----------------------------------------------
>
>
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.agavi.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users