Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion docs/incoming/auto_routing_improved.html
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,22 @@ <h2><a class="toc-backref" href="#id22" role="doc-backlink">Organizing Your Cont
<div class="admonition important">
<p class="admonition-title">Important</p>
<p>Directory names MUST start with an uppercase letter and be CamelCase.</p>
<p>Namespaces need to updated to reflect the current namespace</p>
<div>
<pre>&lt;?php

namespace App\Controllers\<strong>Products</strong>;

<strong>use</strong> App\Controllers\BaseController;

class Home extends BaseController {
public function getIndex() {
echo "Products";
}

}
</pre>
</div>
</div>
<p>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:</p>
Expand Down Expand Up @@ -976,4 +992,4 @@ <h4><a class="toc-backref" href="#id31" role="doc-backlink">Disable Translate UR
</script>

</body>
</html>
</html>