Exemplo n.º 1
0
 /**
  * Registers routes for modules
  *
  * @return Nette\Application\IRouter
  */
 public function createRouter()
 {
     $router = new RouteList();
     //\OddilModule\OddilModule::createRoutes($router, '//oddil.27skauti.cz/');
     //\DefaultModule\DefaultModule::createRoutes($router, '//[!www.]27skauti.cz/');
     \OddilModule\OddilModule::createRoutes($router, 'oddil/');
     \DefaultModule\DefaultModule::createRoutes($router, '/');
     return $router;
 }
Exemplo n.º 2
0
 /**
  * Set up privileges
  *
  * Be careful with the ordering as some might require
  * others to be already called.
  */
 public function __construct()
 {
     $this->addBaseConfig();
     $this->addVIPChronicleConfig();
     $this->addOrganizationConfig();
     $this->addGuestbookConfig();
     $this->addPrivilegeConfig();
     $this->addChronicleConfig();
     $this->addEventConfig();
     $this->addHlasinekConfig();
     $this->addNewsConfig();
     \OddilModule\OddilModule::createPrivileges($this);
     //\DefaultModule\DefaultModule::createPrivileges($this);
 }