Beispiel #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');
 }
Beispiel #2
0
 /**
  * Edit a block
  */
 public function editAction()
 {
     parent::editAction();
     $this->view()->setTemplate('widget-tab');
     $this->assignModules();
 }
Beispiel #3
0
 /**
  * Edit a carousel block
  */
 public function editAction()
 {
     parent::editAction();
     $this->view()->setTemplate('widget-carousel');
 }