Example #1
0
 public function setUp()
 {
     global $appPackages;
     $this->app = new \Phavour\Application(APP_BASE, $appPackages);
     $this->app->setup();
     $this->view = new View($this->app, 'DefaultPackage', 'Index', 'index');
     $this->view->setConfig(array('foo' => 'bar', 'abc' => '123'));
 }
Example #2
0
 /**
  * Retrieve an instance of View for a given package, class, method combination
  * @param string $package
  * @param string $class
  * @param string $method
  * @return \Phavour\Runnable\View
  */
 private function getViewFor($package, $class, $method)
 {
     $view = new View($this, $package, $class, $method);
     $view->setRouter($this->router);
     $view->setConfig($this->config);
     return $view;
 }