function init() { parent::init(); $m = $this->add('x_youtube/Model_XYoutube'); $this->setModel($m, array('title', 'keywords', 'content_description', 'description', 'link_to_video'), array('thumbnail_small', 'title', 'keywords', 'description')); if ($this->grid) { $this->grid->addPaginator(10); $this->grid->addFormatter('thumbnail_small', 'image'); $this->grid->addFormatter('keywords', 'wrap'); $this->grid->addFormatter('description', 'wrap'); $this->grid->addFormatter('title', 'linkToVideo'); } }
function init() { $this->form_options = array_merge($this->form_options, array('crud' => $this)); parent::init(); }