Template

This is the general discussion board for development on Sourdough.

Moderators: Moderator Team, Development Team

Template

Postby antos2 on Sat Jun 17, 2006 6:58 pm

A have problem with use Template class. When I use classic Ktemplate class I have no problem create and fill a block but when I use Sourdough SD_Template class block not be created.
Code: Select all
$t    = $page->Template();
$t->loadTemplateFile('page.tpl');

$t_temptest = $t->temptest;
$t_temptest->item  = "first entry";
$t->temptest = $t_temptest;
$t_temptest->reset();
$t_temptest->item = "second entry";
$t->temptest = $t_temptest;

Call to undefined method stdClass::reset()

Can you help me, please. I thing that I not fully understand different use of assign in both class but I not able find solution... :shock:
antos2
 
Posts: 2
Joined: Sat Jun 17, 2006 6:30 pm
Location: Pilsen

Return to Sourdough development

Who is online

Users browsing this forum: No registered users and 1 guest

cron