Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class TestControl extends \Nette\Application\UI\Control
- {
- protected function createComponentCss()
- {
- if ($component = $this->getParent()->getComponent('css')) {
- return $component;
- }
- return new CssLoader();
- }
- public function render()
- {
- $this->template->setFile(__DIR__ . '/template.latte');
- $this->template->render();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment