示例#1
0
 function __construct()
 {
     parent::__construct();
     $this->db = App::getContainer()->get('database');
 }
示例#2
0
 /**
  * Generic constructor.
  * Associates a model to the view
  *
  * @param Model $model
  *            Model to associate with the controller
  */
 public function __construct($model)
 {
     parent::__construct($model);
 }
示例#3
0
 /**
  * Constructor
  * @param mixed $path
  * @param array $data
  *
  * @throws \UnexpectedValueException
  */
 public function __construct($path, array $data = array())
 {
     parent::__construct($path, $data);
 }