public function toString() { $template = $this->getTemplate(); $this->beforeRender(); return (string) $template; }