tpl = new TemplatePower ($tplFile); $this->tpl->prepare (); $this->parse(); $this->tpl->printToScreen (); } public function parse() { $this->tpl->assign ("indexactive"," class=\"active\""); $this->tpl->assign ("pagetitle","Your Website On Top"); $attr = array(); $attr["paid"] = 1; $websites = Record::getAllRecordsFiltered($attr,"Website"); foreach($websites as $website) { $this->tpl->newblock ("website"); $this->tpl->assign ("value",$website->value); $this->tpl->assign ("urlbegin",$website->urlbegin); $this->tpl->assign ("url",$website->url); $this->tpl->assign ("title",$website->title); $this->tpl->assign ("description",$website->description); } } } $index = new Index(); ?>