Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2014
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.79 KB | None | 0 0
  1. abstract class BasePresenter extends Nette\Application\UI\Presenter
  2. {
  3.     private $database;
  4.     private $context;
  5.    
  6.     public function __construct(Nette\Database\Context $database)
  7.     {
  8.        
  9.         $this->database = $database;
  10.        
  11.     }
  12.  
  13.         protected function createComponentMenu()
  14.         {
  15.             $menu = new \MenuControl($this->database); // tady je chyba
  16.             return $menu;
  17.         }
  18.        
  19.         protected function createComponentRotator()
  20.         {
  21.             $rotator = new \RotatorControl($this->database);
  22.             return $rotator;
  23.         }
  24.        
  25.         protected function createComponentKatalogMenu()
  26.         {
  27.             $katalogg = new \KatalogMenuControl($this->database);
  28.             return $katalogg;
  29.         }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement