Created
May 5, 2011 21:21
-
-
Save RadoRado/957982 to your computer and use it in GitHub Desktop.
Use-case for the Homework #6 Gist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $v = new View(); // some class that implements the IView inteface | |
| $v->setTitle("Use case for the homework"); | |
| $v->setJavascriptFolder("js"); | |
| $v->setCSSFolder("styles"); | |
| $v->addJavascriptFiles(array("jquery.js", "custom.js")); | |
| $v->addCSSFiles(array("jquery.css", "custom.css")); | |
| $v->assignTemplateVariable("message", "Hello!"); | |
| $v->display("index.tpl"); | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment