File tree Expand file tree Collapse file tree 6 files changed +6
-3
lines changed
user_guide_src/source/incoming/routing Expand file tree Collapse file tree 6 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ class Routing extends BaseRouting
8
8
// ...
9
9
}
10
10
11
+ // In app/Config/Routes.php
11
12
// Controller is \Users
12
13
$ routes ->get ('users ' , 'Users::index ' );
13
14
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- // This can be overridden in the Routes file
3
+ // This can be overridden in app/Config/ Routes.php
4
4
$ routes ->setDefaultNamespace ('App ' );
5
5
6
6
// Controller is \App\Users
Original file line number Diff line number Diff line change @@ -8,5 +8,5 @@ class Routing extends BaseRouting
8
8
// ...
9
9
}
10
10
11
- // This can be overridden in the Routes file
11
+ // This can be overridden in app/Config/ Routes.php
12
12
$ routes ->setTranslateURIDashes (true );
Original file line number Diff line number Diff line change @@ -8,5 +8,5 @@ class Routing extends BaseRouting
8
8
// ...
9
9
}
10
10
11
- // This can be overridden in the Routes file
11
+ // This can be overridden in app/Config/ Routes.php
12
12
$ routes ->setAutoRoute (false );
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ class Routing extends BaseRouting
8
8
// ...
9
9
}
10
10
11
+ // In app/Config/Routes.php
11
12
// Would execute the show404 method of the App\Errors class
12
13
$ routes ->set404Override ('App\Errors::show404 ' );
13
14
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ class Routing extends BaseRouting
8
8
// ...
9
9
}
10
10
11
+ // In app/Config/Routes.php
11
12
// to enable
12
13
$ routes ->setPrioritize ();
13
14
You can’t perform that action at this time.
0 commit comments