Exemplo n.º 1
0
 /**
  * Setup application theme.
  *
  * @return void
  */
 protected function _setTheme()
 {
     $theme = Theme::get($this->request);
     $this->viewBuilder()->theme($theme);
 }
Exemplo n.º 2
0
 /**
  * Test exist theme plugin.
  *
  * @return void
  */
 public function testExistTheme()
 {
     $name = Configure::read('Theme.site');
     $path = $this->_paths[1] . $name;
     $this->_folder->create($path);
     $this->assertSame($path, Theme::exist($name));
     $this->_folder->delete($path);
 }