function getMessage($id) { $tmp = new Template($this->viewroot,'messages.htt'); $tmp->loadloop("block_".$id); $tmp->fill('%imgfolder%', getrootdir().$this->imgfolder); return localize($tmp->output()); }