Esempio n. 1
0
 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();
 }
Esempio n. 2
0
 /**
  * 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');
 }
Esempio n. 3
0
 /**
  * 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');
 }