Esempio n. 1
0
 public function testViewNameShouldReturnModulleViewWhenUseApplicationDirFlagEnabledBuViewNotExists()
 {
     $this->renderer->useApplicationDirs(true);
     $expectedView = $this->files->get($this, '/module2/views/default/controller/action.php');
     self::assertEquals($expectedView, $this->renderer->getViewFileName('controller', 'action', null, 'module2'));
 }
Esempio n. 2
0
 /**
  * @return void
  */
 protected function configureRenderer()
 {
     $this->renderer->setLayoutsPath(\Nano::app()->rootDir . DIRECTORY_SEPARATOR . \Nano\Render::LAYOUT_DIR);
     $this->renderer->setViewsPath(\Nano::app()->rootDir . DIRECTORY_SEPARATOR . \Nano\Render::VIEW_DIR);
     $this->renderer->setModuleViewsDirName(\Nano\Render::VIEW_DIR);
 }