/** * Shows adding form * * @return string */ public function indexAction() { $this->loadSharedPlugins(); $member = new VirtualEntity(); $member->setPublished(true); return $this->view->render($this->getTemplatePath(), $this->getWithSharedVars(array('title' => 'Add a member', 'member' => $member))); }
/** * Renders empty form * * @return string */ public function addAction() { $this->view->getPluginBag()->load('preview'); $image = new VirtualEntity(); $image->setPublished(true)->setOrder(0); return $this->createForm($image, 'Add a slider'); }
/** * Renders empty form * * @return string */ public function addAction() { $this->view->getPluginBag()->load('preview'); $photo = new VirtualEntity(); $photo->setPublished(true)->setOrder(0); return $this->createForm($photo, 'Add a photo'); }
/** * Renders empty form * * @param string $categoryId Category id * @return string */ public function addAction($categoryId) { $answer = new VirtualEntity(); $answer->setPublished(true)->setCategoryId($categoryId); return $this->createForm($answer, 'Add new answer'); }
/** * Renders empty form * * @return string */ public function addAction() { $video = new VirtualEntity(); $video->setPublished(true)->setSeo(true); return $this->createForm($video, 'Add a video'); }
/** * Renders empty form * * @return string */ public function addAction() { $advice = new VirtualEntity(); $advice->setPublished(true); return $this->createForm($advice, 'Add an advice'); }
/** * Renders empty form * * @return string */ public function addAction() { $member = new VirtualEntity(); $member->setPublished(true); return $this->createForm($member, 'Add a member'); }
/** * Renders empty form * * @return string */ public function addAction() { $testimonial = new VirtualEntity(); $testimonial->setPublished(true); return $this->createForm($testimonial, 'Add new testimonial'); }
/** * Renders empty form * * @return string */ public function addAction() { $review = new VirtualEntity(); $review->setPublished(true)->setTimestamp(time()); return $this->createForm($review, 'Add new review'); }
/** * Renders empty form * * @return string */ public function addAction() { $faq = new VirtualEntity(); $faq->setPublished(true); return $this->createForm($faq, 'Add new FAQ'); }
/** * Renders empty form * * @return string */ public function addAction() { $stoke = new VirtualEntity(); $stoke->setPublished(true); return $this->createForm($stoke, 'Add a stoke'); }
/** * Renders empty form * * @return string */ public function addAction() { $contact = new VirtualEntity(); $contact->setPublished(true); return $this->createForm($contact, 'Add a contact'); }