public function beforeFilter()
 {
     parent::beforeFilter();
     $this->imagesize = array('width' => 1920, 'height' => 500);
     $this->set('disable_publish', 1);
     $this->set('fields', array('titulo', 'arquivo', 'duracao', 'link'));
     $this->set('menuname', 'home.destaques');
     $this->listurl = Router::url('/DestaquesHome/index/', true);
     $this->editurl = Router::url('/DestaquesHome/add/', true);
     $this->container_model = 'Home1';
     $this->set('titulo', 'Home');
     $this->set('subtitulo', 'Destaque Principal');
     $this->set('submenu_data', array('dados' => array('add' => array('link' => Router::url('/DestaquesHome/add'), 'label' => 'Cadastro'), 'index' => array('link' => Router::url('/DestaquesHome/index'), 'label' => 'Busca'), 'sort' => array('link' => Router::url('/DestaquesHome/sort'), 'label' => 'Ordenar'))));
 }
 public function beforeFilter()
 {
     $this->set('disable_duracao', 1);
     $this->imagesize = array('width' => 800, 'height' => 400);
     $this->set('menuname', 'home.blocos');
     $this->listurl = Router::url('/DestaquesBlocos/index/', true);
     $this->editurl = Router::url('/DestaquesBlocos/add/', true);
     $this->container_model = 'Home2';
     $this->set('titulo', 'Home');
     $this->set('subtitulo', 'Blocos');
     $this->set('submenu_data', array('dados' => array('add' => array('link' => Router::url('/DestaquesBlocos/add'), 'label' => 'Cadastro'), 'index' => array('link' => Router::url('/DestaquesBlocos/index'), 'label' => 'Busca'), 'sort' => array('link' => Router::url('/DestaquesBlocos/sort'), 'label' => 'Ordenar'))));
     parent::beforeFilter();
     $this->set('disable_publish', 1);
 }