/** * Load the form */ private function loadForm() { // create form $this->frm = new FrontendForm('commentsForm'); $this->frm->setAction($this->frm->getAction() . '#' . FL::act('Comment')); // init vars $author = SpoonCookie::exists('comment_author') ? SpoonCookie::get('comment_author') : null; $email = SpoonCookie::exists('comment_email') ? SpoonCookie::get('comment_email') : null; $website = SpoonCookie::exists('comment_website') ? SpoonCookie::get('comment_website') : 'http://'; // create elements $this->frm->addText('author', $author); $this->frm->addText('email', $email); $this->frm->addText('website', $website, null); $this->frm->addTextarea('message'); }