Skip to content

Commit ecd5fca

Browse files
committed
Add instructions for including other files in README
Because the router->run() relies on the constants being defined, it would be a good idea to make sure you define all of them before running the router.
1 parent 4a213e4 commit ecd5fca

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,14 @@ Examples
6464
array('action'=>'view'),
6565
array("id"=>"[0-9]+")); // only allow numeric values for 'id'
6666

67+
68+
// any other initialization you need
69+
70+
// Make sure to or require() your controller classes' files prior to $r->run()
71+
// (same-file controllers can go at the bottom of index.php)
72+
6773
$r->run();
74+
?>
6875

6976

7077

0 commit comments

Comments
 (0)