Ejemplo n.º 1
0
 /**
  * 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)));
 }
Ejemplo n.º 2
0
 /**
  * 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');
 }
Ejemplo n.º 3
0
 /**
  * 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');
 }
Ejemplo n.º 4
0
 /**
  * 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');
 }
Ejemplo n.º 5
0
 /**
  * Renders empty form
  * 
  * @return string
  */
 public function addAction()
 {
     $video = new VirtualEntity();
     $video->setPublished(true)->setSeo(true);
     return $this->createForm($video, 'Add a video');
 }
Ejemplo n.º 6
0
 /**
  * Renders empty form
  * 
  * @return string
  */
 public function addAction()
 {
     $advice = new VirtualEntity();
     $advice->setPublished(true);
     return $this->createForm($advice, 'Add an advice');
 }
Ejemplo n.º 7
0
 /**
  * Renders empty form
  * 
  * @return string
  */
 public function addAction()
 {
     $member = new VirtualEntity();
     $member->setPublished(true);
     return $this->createForm($member, 'Add a member');
 }
Ejemplo n.º 8
0
 /**
  * Renders empty form
  * 
  * @return string
  */
 public function addAction()
 {
     $testimonial = new VirtualEntity();
     $testimonial->setPublished(true);
     return $this->createForm($testimonial, 'Add new testimonial');
 }
Ejemplo n.º 9
0
 /**
  * Renders empty form
  * 
  * @return string
  */
 public function addAction()
 {
     $review = new VirtualEntity();
     $review->setPublished(true)->setTimestamp(time());
     return $this->createForm($review, 'Add new review');
 }
Ejemplo n.º 10
0
Archivo: Faq.php Proyecto: bono-cms/Faq
 /**
  * Renders empty form
  * 
  * @return string
  */
 public function addAction()
 {
     $faq = new VirtualEntity();
     $faq->setPublished(true);
     return $this->createForm($faq, 'Add new FAQ');
 }
Ejemplo n.º 11
0
 /**
  * Renders empty form
  * 
  * @return string
  */
 public function addAction()
 {
     $stoke = new VirtualEntity();
     $stoke->setPublished(true);
     return $this->createForm($stoke, 'Add a stoke');
 }
Ejemplo n.º 12
0
 /**
  * Renders empty form
  * 
  * @return string
  */
 public function addAction()
 {
     $contact = new VirtualEntity();
     $contact->setPublished(true);
     return $this->createForm($contact, 'Add a contact');
 }