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

Reply via email to