From 18507a4c76abad7cf5e6e9572137d0dc5a977fcc Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Mon, 16 Jul 2018 15:36:21 +0200 Subject: first cake bake, auto-generated files not included for now --- app-from-scratch.sh | 13 +++++++++++++ fai_gestion/config/routes.php | 3 ++- fai_gestion/src/Model/Entity/empty | 0 fai_gestion/src/Model/Table/empty | 0 fai_gestion/tests/Fixture/empty | 0 5 files changed, 15 insertions(+), 1 deletion(-) delete mode 100644 fai_gestion/src/Model/Entity/empty delete mode 100644 fai_gestion/src/Model/Table/empty delete mode 100644 fai_gestion/tests/Fixture/empty diff --git a/app-from-scratch.sh b/app-from-scratch.sh index 9fcdf90..074d258 100644 --- a/app-from-scratch.sh +++ b/app-from-scratch.sh @@ -227,3 +227,16 @@ editor config/bootstrap.php config/bootstrap_cli.php git checkout -- config/bootstrap.php git add ../app-from-scratch.sh composer.json composer.lock config/bootstrap_cli.php plugins/ git commit -m "Bake : setup and create empty CustomTheme" +# 31a40cfc446c9586f89a4aa69ef76d76d469e5a4 + + +# Baking a cake (generate the CRUD) +cake bake all --theme=CustomTheme --everything +editor config/routes.php +# -$routes->connect('/', ['controller' => 'Pages', 'action' => 'display', 'home']); +# +//$routes->connect('/', ['controller' => 'Pages', 'action' => 'display', 'home']); +# +$routes->redirect('/', ['controller' => 'Adherents'], ['full' => false]); +# -$routes->connect('/', ['controller' => 'Pages', 'action' => 'display', 'home']); +git add ../app-from-scratch.sh config/routes.php +git add src/Model/Entity/empty src/Model/Table/empty tests/Fixture/empty +git commit -m "first cake bake, auto-generated files not included for now" diff --git a/fai_gestion/config/routes.php b/fai_gestion/config/routes.php index b9b8c9f..97897bc 100644 --- a/fai_gestion/config/routes.php +++ b/fai_gestion/config/routes.php @@ -52,7 +52,8 @@ Router::scope('/', function (RouteBuilder $routes) { * its action called 'display', and we pass a param to select the view file * to use (in this case, src/Template/Pages/home.ctp)... */ - $routes->connect('/', ['controller' => 'Pages', 'action' => 'display', 'home']); + //$routes->connect('/', ['controller' => 'Pages', 'action' => 'display', 'home']); + $routes->redirect('/', ['controller' => 'Adherents'], ['full' => false]); /** * ...and connect the rest of 'Pages' controller's URLs. diff --git a/fai_gestion/src/Model/Entity/empty b/fai_gestion/src/Model/Entity/empty deleted file mode 100644 index e69de29..0000000 diff --git a/fai_gestion/src/Model/Table/empty b/fai_gestion/src/Model/Table/empty deleted file mode 100644 index e69de29..0000000 diff --git a/fai_gestion/tests/Fixture/empty b/fai_gestion/tests/Fixture/empty deleted file mode 100644 index e69de29..0000000 -- cgit v1.1