public function __construct(\Cake\Network\Request $request = null, \Cake\Network\Response $response = null, \Cake\Event\EventManager $eventManager = null, array $cellOptions = array()) { parent::__construct($request, $response, $eventManager, $cellOptions); $this->initData(); }
/** * Constructor. It loads the model * @param \Cake\Network\Request $request The request to use in the cell * @param \Cake\Network\Response $response The request to use in the cell * @param \Cake\Event\EventManager $eventManager The eventManager to bind events to * @param array $cellOptions Cell options to apply * @uses Cake\View\Cell::__construct() */ public function __construct(\Cake\Network\Request $request = null, \Cake\Network\Response $response = null, \Cake\Event\EventManager $eventManager = null, array $cellOptions = []) { parent::__construct($request, $response, $eventManager, $cellOptions); $this->loadModel('MeCms.Tags'); }
/** * Constructor. It loads the model * @param \Cake\Network\Request $request The request to use in the cell * @param \Cake\Network\Response $response The request to use in the cell * @param \Cake\Event\EventManager $eventManager The eventManager to bind events to * @param array $cellOptions Cell options to apply * @uses Cake\View\Cell::__construct() */ public function __construct(\Cake\Network\Request $request = null, \Cake\Network\Response $response = null, \Cake\Event\EventManager $eventManager = null, array $cellOptions = []) { parent::__construct($request, $response, $eventManager, $cellOptions); //Loads the Videos model $this->loadModel('MeYoutube.Videos'); }