Skip to content

Update auto_routing_improved.html #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
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>