Adding controller to example.

This commit is contained in:
Jeremy Bush 2010-05-17 19:58:05 -05:00
parent cf021374cb
commit 21ae6ab5df
2 changed files with 14 additions and 1 deletions

View file

@ -100,6 +100,19 @@ Template:
</body>
</html>
Controller:
<?php
class Controller_Welcome extends Controller {
public function action_index()
{
echo new View_Example;
}
} // End Welcome
For specific usage and documentation, see:
[PHP Mustache](http://github.com/bobthecow/mustache.php)

View file

@ -10,7 +10,7 @@
<ul>
{{#tests}}
<li><strong>{{id}}:</strong> ({{name}}:{{value}})</li>
{{/tests}}
{{/tests}}
</ul>
</body>
</html>