Exemple #1
0
 /**
  * Add a block
  */
 public function addAction()
 {
     if ($this->request->isPost()) {
         $this->type = $this->request->getPost('type');
     } else {
         $this->type = $this->params('type', 'html');
     }
     parent::addAction();
     $this->view()->setTemplate('system:component/form');
 }
Exemple #2
0
 /**
  * Add a block and default ACL rules
  */
 public function addAction()
 {
     parent::addAction();
     $this->view()->setTemplate('widget-tab');
     $this->assignModules();
 }
 /**
  * Add a carousel block and default ACL rules
  */
 public function addAction()
 {
     parent::addAction();
     $this->view()->setTemplate('widget-carousel');
 }