diff --git a/README.md b/README.md index 6d4c865..44bf414 100644 --- a/README.md +++ b/README.md @@ -16,38 +16,16 @@ Tipsy is an MVW (Model, View, Whatever) PHP micro framework inspired by [Angular See [Examples](https://github.com/tipsyphp/tipsy/wiki/Examples) for more detailed examples. See [Documentation](https://github.com/tipsyphp/tipsy/wiki) for more information. -#### View Template Example - ###### index.php ```php -$app->home(function($Scope, $View) { - $Scope->user = 'Mai Tai'; - $View->display('hello'); +$app->home(function($View) { + $View->display('index', [user => 'crystal']); }); ``` -###### hello.phtml +###### index.phtml ```phtml -