public function __construct(Request $req) { parent::__construct($req); $this->_model = new PostModel(AppRegistry::getConfig()); }