David Zülke <[EMAIL PROTECTED]> words
        on 08.09.2005 - 17:15 (+0200 Zulu-Time):

> Slots are not available in the content template, only in the decorator. This
> is due to the way decorators work, no way around it, I'm afraid :(
> > I don't know who i should manage it to get a template in a template?
Got a workaround... includes works fine: 

[file:] webapp/modules/Auction/templates/ShowSuccess.php: 
<p><?=$template['text']?></p>
<? include("eTest.php") ?>

[file:] webapp/modules/Auction/templates/eTest.php
<h1>eTest inside</h1>
<?=$template['jan']?>

[file:] webapp/modules/Auction/views/ShowSuccessView.class.php
    public function execute ()
    {

        // set our template
        $this->setDecoratorTemplate(AG_WEBAPP_DIR .
"/modules/Default/templates/Master.php");
        $this->setSlot('eHeader', 'Default', 'eHeader');
        $this->setSlot('eFooter', 'Default', 'eFooter');
        $this->setTemplate('ShowSuccess.php');

        // set the title
        $this->setAttribute('title', 'Show Action');
        $this->setAttribute('text', 'simple auction test');
        $this->setAttribute('jan', 'wasn test');

    }

Regards Erik

-- 
J. Erik Heinz
Keyboard-samuraing in process
_______________________________________________
agavi-dev mailing list
[email protected]
http://labworkz.com/cgi-bin/mailman/listinfo/agavi-dev

Reply via email to