/** * Renders empty form * * @return string */ public function addAction() { $post = new VirtualEntity(); $post->setDate(date('m/d/Y', time()))->setPublished(true)->setComments(true)->setSeo(true); return $this->createForm($post, 'Add a post'); }
/** * Renders empty form * * @return string */ public function addAction() { $post = new VirtualEntity(); $post->setDate(date('m/d/Y', time()))->setPublished(true)->setComments(true)->setSeo(true); return $this->createForm($post, 'Add a post'); }