Skip to content

Instantly share code, notes, and snippets.

@RadoRado
Created May 5, 2011 21:21
Show Gist options
  • Select an option

  • Save RadoRado/957982 to your computer and use it in GitHub Desktop.

Select an option

Save RadoRado/957982 to your computer and use it in GitHub Desktop.
Use-case for the Homework #6 Gist
<?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