Adding controller to example.
This commit is contained in:
parent
cf021374cb
commit
21ae6ab5df
|
@ -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)
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<ul>
|
||||
{{#tests}}
|
||||
<li><strong>{{id}}:</strong> ({{name}}:{{value}})</li>
|
||||
{{/tests}}
|
||||
{{/tests}}
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in a new issue