public function createPageRoute(IRouter $routes, string $url): void
	{
		list($presenter, $action) = explode(':', $this->pageLink);

		$routes[] = new Route($url . '[<url .*>]', [
			'presenter' => $presenter,
			'action' => $action,
			null => [
				Route::FILTER_IN => function ($params) {
					if ($this->orm->pages->exists($params['url'])) {
						return $params;
					}
					return null;
				}
			],
		]);
	}
public function createPageRoute(IRouter $routes, string $url): void
	{
		list($presenter, $action) = explode(':', $this->pageLink);

		$routes[] = new Route($url . '[<url .*>]', [
			'presenter' => $presenter,
			'action' => $action,
			null => [
				Route::FILTER_IN => function ($params) {
					if ($this->orm->pages->exists($params['url'])) {
						return $params;
					}
					return null;
				}
			],
		]);
	}
public function createPageRoute ( IRouter $ routes , string $ url ) : void { list ( $ presenter , $ action ) = explode ( ':' , $ this -> pageLink ) ; $ routes [ ] = new Route ( $ url . '[<url .*>]' , [ 'presenter' => $ presenter , 'action' => $ action , null => [ Route :: FILTER_IN => function ( $ params ) { if ( $ this -> orm -> pages -> exists ( $ params [ 'url' ] ) ) { return $ params ; } return null ; } ] , ] ) ; }
Vytvori routy stranek
@param IRouter $routes
@param string $url
Vytvori routy stranek