|
|
|
@ -348,7 +348,7 @@ Flight::before('hello', function(&$params, &$output){
|
|
|
|
|
Flight::after('hello', function(&$params, &$output){
|
|
|
|
|
// Manipulate the output
|
|
|
|
|
$output .= " Have a nice day!";
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// Invoke the custom method
|
|
|
|
|
echo Flight::hello('Bob');
|
|
|
|
@ -743,4 +743,4 @@ $app->route('/', function(){
|
|
|
|
|
$app->start();
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
So instead of calling the static method, you would call
|
|
|
|
|
So instead of calling the static method, you would call the instance method with the same name on the Engine object.
|
|
|
|
|