summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2018-07-16 15:36:21 +0200
committerLudovic Pouzenc <ludovic@pouzenc.fr>2018-07-16 15:36:21 +0200
commit18507a4c76abad7cf5e6e9572137d0dc5a977fcc (patch)
treeba81961c4ec34788aad9fbd74f52811bdaa60ce8
parent31a40cfc446c9586f89a4aa69ef76d76d469e5a4 (diff)
downloadchd_gestion-18507a4c76abad7cf5e6e9572137d0dc5a977fcc.zip
chd_gestion-18507a4c76abad7cf5e6e9572137d0dc5a977fcc.tar.gz
chd_gestion-18507a4c76abad7cf5e6e9572137d0dc5a977fcc.tar.bz2
first cake bake, auto-generated files not included for now
-rw-r--r--app-from-scratch.sh13
-rw-r--r--fai_gestion/config/routes.php3
-rw-r--r--fai_gestion/src/Model/Entity/empty0
-rw-r--r--fai_gestion/src/Model/Table/empty0
-rw-r--r--fai_gestion/tests/Fixture/empty0
5 files changed, 15 insertions, 1 deletions
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
--- a/fai_gestion/src/Model/Entity/empty
+++ /dev/null
diff --git a/fai_gestion/src/Model/Table/empty b/fai_gestion/src/Model/Table/empty
deleted file mode 100644
index e69de29..0000000
--- a/fai_gestion/src/Model/Table/empty
+++ /dev/null
diff --git a/fai_gestion/tests/Fixture/empty b/fai_gestion/tests/Fixture/empty
deleted file mode 100644
index e69de29..0000000
--- a/fai_gestion/tests/Fixture/empty
+++ /dev/null