Route with name adminProjects is not exists!
/home/sw015200/vendor/Onion/Application/Router.php
https://www.atriumarchitekti.sk/sk/project/3/pdf (GET)
Mozilla/5.0 (X11; Linux x86_64; rv:137.0) Gecko/20100101 Firefox/137.0
50 }51 }5253 return $this->currentRoute;54 }5556 public function createUrl($routeName, $resource = array(), $query = array(), $anchor = null, $scheme = NULL, $subDomain = null, $root = null)57 {58 $hash = sha1(json_encode(func_get_args(), true));5960 if (isset($this->urlsCache[$hash]) === TRUE) {61 return $this->urlsCache[$hash];62 }6364 if ($routeName === null) {65 $routeName = $this->currentRoute->name;66 }6768 if (isset($this->routes[$routeName]) === false) {69 throw new \InvalidArgumentException('Route with name '.$routeName.' is not exists!');70 }7172 $this->urlsCache[$hash] = $this->routes[$routeName]->createUrl($resource, $query, $anchor, $scheme, $subDomain, $root);7374 return $this->urlsCache[$hash];75 }7677 /**78 * Metóda na vrátenie hodnoty chránenej vlastnosti79 *
251252253 public function pdf($languageCode, $projectId)254 {255 $where = array();256 $where[] = array('projects.id', $projectId);257258 $where[] = array('projects_contents.language', $this->services->onionCMS->language['id']);259 $where[] = array('projects_categories_contents.language', $this->services->onionCMS->language['id']);260261 if ($this->app->user->isInGroup('projects_admins') === false) {262 $where[] = array('projects_categories.show', true);263 $where[] = array('projects.show', true);264 }265266 try {267 $projectModel = $this->services->getFactory('projectModel')->create($where);268269 } catch (\Onion\Database\ModelException $e) {270 $this->returnToManage('Projekt s ID '.$projectId.' neexistuje!', 'error');271 }272273 $view = clone $this->view;274 $generator = new \onionCMS\Modules\Projects\Libs\ProjectPdfGenerator($this->app, $view, $this->services->cache);275 $generator->generate($projectModel)->send();276 }277278279280 private function returnToManage($message = null, $type = 'info')
array ( 0 => 'Projekt s ID 3 neexistuje!', 1 => 'error', )
152153 if ($this->actionName === null) {154 $this->actionName = $this->currentRoute->action;155 }156 preg_match('/([A-Za-z0-9]+)Controller/', $this->controllerName, $match);157 if (isset($match[1]) === true) {158 $view->setTemplate(APP_DIR . '/Templates/' . $match[1] . '.html');159 }160161 $this->controller = new $this->controllerName($this->container);162163 $parameters = $this->currentRoute->getResource();164165 $this->runHooks('system.hooks.afterCreateController');166167 call_user_func_array(array($this->controller, 'before'), $parameters);168169 $this->runHooks('system.hooks.beforeControllerRun');170171 call_user_func_array(array($this->controller, $this->actionName), $parameters);172173 $this->runHooks('system.hooks.afterControllerRun');174175 call_user_func_array(array($this->controller, 'after'), $parameters);176177 if (is_object($this->controller->view) === true) {178 $view['flash'] = $this->flash['current'];179180 $this->runHooks('system.hooks.beforeRenderView');181
array ( 0 => array ( 0 => 'object (onionCMS\\Modules\\Projects\\Controllers\\ProjectController)', 1 => 'pdf', ), 1 => array ( 'languageCode' => 'sk', 'projectId' => '3', ), )
132 WWW_DIR.'/js/vendor/cookie.js',133 WWW_DIR.'/js/vendor/scroll-top.js',134 ),135 'less' => array(136 )137 ),138 'after' => array(139 'js' => array(140 WWW_DIR.'/js/main.js',141 ),142 'less' => array(143 WWW_DIR.'/less/main.less'144 )145 )146 )147 );148149 $app = new \Onion\Application($configuration);150151 $app->run();152 exit;
array ( )
1213 // absolute filesystem path to the libraries14 define('LIBS_DIR', realpath(WWW_DIR.'/../vendor'));1516 // absolute filesystem path to the web root17 define('ONION_DIR', LIBS_DIR.'/Onion');1819 // absolute filesystem path to the application root20 define('APP_DIR', WWW_DIR.'/../app');2122 // absolute filesystem path to the temporary files23 define('TEMP_DIR', realpath(WWW_DIR.'/../temp'));2425 // absolute filesystem path to the cache26 define('CACHE_DIR', realpath(WWW_DIR.'/../cache'));2728 define('ONIONCMS_DIR', realpath(ONION_DIR.'/../onionCMS'));2930 // load bootstrap file31 require ONIONCMS_DIR.'/bootstrap.php';
array ( 0 => '/home/sw015200/vendor/onionCMS/bootstrap.php', )
array ( 'REDIRECT_SCRIPT_URL' => '/sk/project/3/pdf', 'REDIRECT_SCRIPT_URI' => 'https://www.atriumarchitekti.sk/sk/project/3/pdf', 'REDIRECT_HTTP_AUTHORIZATION' => '', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_SSL_TLS_SNI' => 'www.atriumarchitekti.sk', 'REDIRECT_STATUS' => '200', 'SCRIPT_URL' => '/sk/project/3/pdf', 'SCRIPT_URI' => 'https://www.atriumarchitekti.sk/sk/project/3/pdf', 'HTTP_AUTHORIZATION' => '', 'HTTPS' => 'on', 'SSL_TLS_SNI' => 'www.atriumarchitekti.sk', 'HTTP_HOST' => 'www.atriumarchitekti.sk', 'HTTP_USER_AGENT' => 'Mozilla/5.0 (X11; Linux x86_64; rv:137.0) Gecko/20100101 Firefox/137.0', 'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_LANGUAGE' => 'sk,cs;q=0.8,en-US;q=0.5,en;q=0.3', 'HTTP_ACCEPT_ENCODING' => 'gzip, deflate, br, zstd', 'HTTP_CONNECTION' => 'keep-alive', 'HTTP_REFERER' => 'https://www.atriumarchitekti.sk/admin/project/3/edit', 'HTTP_COOKIE' => '_ga_6KZFH51S3H=GS1.1.1744032940.36.1.1744032969.31.0.0; _ga=GA1.1.1635389584.1728492018; __utma=131833183.1635389584.1728492018.1729789283.1729800916.22; __utmz=131833183.1728583400.4.2.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided); _fbp=fb.1.1728492018730.684679852304948539; _gcl_au=1.1.1924676166.1736368250; consent_cookie=%7B%22preferences%22%3Atrue%2C%22statistics%22%3Atrue%2C%22marketing%22%3Atrue%2C%22functionality%22%3Atrue%7D; gtm_atrium=%7B%22security_storage%22%3A%22granted%22%2C%22functionality_storage%22%3A%22granted%22%2C%22personalization_storage%22%3A%22granted%22%2C%22analytics_storage%22%3A%22granted%22%2C%22ad_user_data%22%3A%22granted%22%2C%22ad_personalization%22%3A%22granted%22%2C%22ad_storage%22%3A%22granted%22%7D; language=sk; qazfdrtygdfxsw=6vuis19he5vt1fop1tg11r6lblngjqcd8rj5373qhnqm3b0f35c18b2s4kbp9kck2rv5tcadmhja10hk84kq9rd6bjs0nf2q3ibto60; ws56trt87dfgxzaq=YlBQcmF2ZjBpbTRYOTFpRDFPZnhrbURLRW90VGVaVjNiMmloUmpSMWllMnBVZktRSVMyeDB6enRGS29IWmNET2h5bDhhVE1saGgweTFSdWRvNXFsdDRkcU9BWndwNm0vUVJIaFdQVEtnVlI5c1pGeG8wSURxdUtNWkdMRncydS9NYnhzT1VNTzZyZHVPV2psT0VlcGFNLzBJWk9XUDJFY0MyODhkZGtlWG5vZkRBbHZEQzcxWXdCd282anBYeFZpUXVmWXhzcnJqcXA4QUV4ZnkwT2dRM2RHV0xSeUc0cy91U3lJQ3h5aDVZMEtySFVHQlNVOEI1ODRjcXZnak52R3JvNUs5emdLc1RUdzVhRU94RXgrblE9Pac%2FxdYrBVA5ZMgu%2ByO%2BYB0%3D', 'HTTP_UPGRADE_INSECURE_REQUESTS' => '1', 'HTTP_SEC_FETCH_DEST' => 'document', 'HTTP_SEC_FETCH_MODE' => 'navigate', 'HTTP_SEC_FETCH_SITE' => 'same-origin', 'HTTP_SEC_FETCH_USER' => '?1', 'HTTP_PRIORITY' => 'u=0, i', 'PATH' => '/sbin:/usr/sbin:/bin:/usr/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'www.atriumarchitekti.sk', 'SERVER_ADDR' => '93.184.77.83', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '88.212.45.6', 'DOCUMENT_ROOT' => '/home/sw015200/www_root', 'SERVER_ADMIN' => 'webmaster@sw015200.hh', 'SCRIPT_FILENAME' => '/home/sw015200/www_root/index.php', 'REMOTE_PORT' => '51474', 'REDIRECT_URL' => '/sk/project/3/pdf', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/sk/project/3/pdf', 'SCRIPT_NAME' => '/index.php', 'PHP_SELF' => '/index.php', 'REQUEST_TIME' => 1744043266, )
array ( )