Removed $this reference

pull/11/head
Mike Cao 14 years ago
parent b9034d7c51
commit fb507428b7

@ -337,8 +337,8 @@ name of the template file and optional template data:
Flight::render('hello.php', array('name', 'Bob'));
The template data you pass in is automatically injected into the template and can be accessed using the `$this` variable. Template files
are simply PHP files. If the content of the `hello.php` template file is:
The template data you pass in is automatically injected into the template and can be reference like a local variable.
Template files are simply PHP files. If the content of the `hello.php` template file is:
Hello, <?php echo $name; ?>!

Loading…
Cancel
Save