public function save()
 {
     $containers = $this->request->post('containers');
     $this->request->post('containers', array());
     $page_block_template_id = $this->request->param('id');
     Model_Page_Block_Template_Container::save_template($page_block_template_id, $containers);
     parent::save();
 }
Example #2
0
 protected function save()
 {
     if ($this->request->post('password') === '') {
         $values = $this->request->post();
         unset($values['password']);
         $this->request->post($values);
     }
     parent::save();
 }
Example #3
0
 public function action_index()
 {
     $this->actions = array(array('btn' => 'warning', 'link' => 'manager/page/preview/:id', 'icon' => 'object-align-top', 'text' => 'Layout'));
     $this->ignore_fields = array('actived', 'introduction', 'slug', 'title', 'data', 'meta_description');
     if ($this->parent_id and $this->parent === 'page') {
         $this->ignore_fields[] = 'page';
     }
     $this->ignore_actions[] = 'links';
     $this->model->where('actived', '=', TRUE);
     $this->model->order_by('id_page');
     parent::action_index();
 }