Guest User

Untitled

a guest
Nov 21st, 2013
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1. class TestControl extends \Nette\Application\UI\Control
  2. {
  3.  
  4.     protected function createComponentCss()
  5.     {
  6.     if ($component = $this->getParent()->getComponent('css')) {
  7.         return $component;
  8.     }
  9.    
  10.     return new CssLoader();
  11.     }
  12.  
  13.     public function render()
  14.     {
  15.     $this->template->setFile(__DIR__ . '/template.latte');
  16.     $this->template->render();
  17.     }
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment