From cde92385cf10e2ddf1dff7c938e3e56885f5bc3b Mon Sep 17 00:00:00 2001 From: "jetzt-deins.de" <75520703+jetzt-deins@users.noreply.github.com> Date: Mon, 10 Mar 2025 07:01:52 +0100 Subject: [PATCH] Update auto_routing_improved.html Added note, that namespaces must be adjusted --- docs/incoming/auto_routing_improved.html | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/docs/incoming/auto_routing_improved.html b/docs/incoming/auto_routing_improved.html index a7d402ff..be062f9a 100644 --- a/docs/incoming/auto_routing_improved.html +++ b/docs/incoming/auto_routing_improved.html @@ -749,6 +749,22 @@
Important
Directory names MUST start with an uppercase letter and be CamelCase.
+Namespaces need to updated to reflect the current namespace
+<?php + +namespace App\Controllers\Products; + +use App\Controllers\BaseController; + +class Home extends BaseController { + public function getIndex() { + echo "Products"; + } + +} ++
When using this feature the first segment of your URI must specify the directory. For example, let’s say you have a controller located here:
@@ -976,4 +992,4 @@