Update README.md

pull/246/head
Yuriy Tkachenko 9 years ago
parent eaa9c99dd7
commit e42d4ad7f9

@ -130,7 +130,9 @@ class Greeting
} }
} }
Flight::route('/', array(new Greeting, 'hello')); $greeting = new Greeting();
Flight::route('/', array($greeting, 'hello'));
``` ```
Routes are matched in the order they are defined. The first route to match a Routes are matched in the order they are defined. The first route to match a

Loading…
Cancel
Save