From 4a3ec0ca3f7d0ca8776a6ee7f2a2615234395eb8 Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Mon, 16 Jul 2018 00:09:33 +0200 Subject: Cake 3.6.7 fresh install --- fai_gestion/src/Controller/AppController.php | 55 ++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 fai_gestion/src/Controller/AppController.php (limited to 'fai_gestion/src/Controller/AppController.php') diff --git a/fai_gestion/src/Controller/AppController.php b/fai_gestion/src/Controller/AppController.php new file mode 100644 index 0000000..49fa03f --- /dev/null +++ b/fai_gestion/src/Controller/AppController.php @@ -0,0 +1,55 @@ +loadComponent('Security');` + * + * @return void + */ + public function initialize() + { + parent::initialize(); + + $this->loadComponent('RequestHandler', [ + 'enableBeforeRedirect' => false, + ]); + $this->loadComponent('Flash'); + + /* + * Enable the following component for recommended CakePHP security settings. + * see https://book.cakephp.org/3.0/en/controllers/components/security.html + */ + //$this->loadComponent('Security'); + } +} -- cgit v1.1