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