SYSPATH/classes/Controller.php [ 57 ]
52
53 $requestLang = ORM::factory('Languages')->getRequestLang($this->request);
54 $orm = new $class();
55
56 $result = $orm->where($orm->getBinding(),'=',$param)->find($requestLang['lang']);
57 if (!$result->loaded()) throw HTTP_Exception::factory(404,'The page not found!');
58
59 return $result;
60 }
61 }
-
SYSPATH/classes/Controller.php [ 42 ] » Controller->assingVariable(arguments)
0
string(14) "Model\Pictures"
1
string(12) "central-park"
37 $method = new ReflectionMethod($this, $action); 38 $params = $this->request->param(); 39 40 foreach ($method->getParameters() as $parameter) { 41 if (array_key_exists($parameter->getName(),$params)) { 42 $result[] = $this->assingVariable($parameter->getClass()->getName(),$params[$parameter->getName()]); 43 } 44 } 45 46 return $result; 47 }
-
SYSPATH/classes/Controller.php [ 22 ] » Controller->getMethodParams(arguments)
0
string(12) "action_event"
17 'The requested URL :uri was not found on this server.', 18 array(':uri' => $this->request->uri()) 19 )->request($this->request); 20 } 21 22 $params = $this->getMethodParams($action); 23 24 // Execute the action itself 25 call_user_func_array(array($this, $action), $params); 26 27 // Execute the "after action" method
-
{PHP internal call} » Controller->execute()
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Calendar(6)
{ public template => string(19) "Calendar/event.twig" public twig => object Twig_Environment(34)
{ protected charset => string(5) "UTF-8" protected loader => object Twig_Loader_Filesystem(4)
public auto_render => bool TRUE public context => object stdClass(4){ protected paths => array(1) ( "__main__" => array(10) ( 0 => string(59) "/var/www/vhosts/fessneki.hu/repo/frontend/application/views" 1 => string(50) "/var/www/vhosts/fessneki.hu/repo/core/minion/views" 2 => string(47) "/var/www/vhosts/fessneki.hu/repo/core/orm/views" 3 => string(52) "/var/www/vhosts/fessneki.hu/repo/core/jshelper/views" 4 => string(49) "/var/www/vhosts/fessneki.hu/repo/core/files/views" 5 => string(55) "/var/www/vhosts/fessneki.hu/repo/core/formbuilder/views" 6 => string(49) "/var/www/vhosts/fessneki.hu/repo/core/pager/views" 7 => string(50) "/var/www/vhosts/fessneki.hu/repo/core/mailer/views" 8 => string(51) "/var/www/vhosts/fessneki.hu/repo/core/helpers/views" 9 => string(53) "/var/www/vhosts/fessneki.hu/repo/core/recaptcha/views" ) ) protected cache => array(0) protected errorCache => array(0) private rootPath => string(42) "/var/www/vhosts/fessneki.hu/repo/frontend/" }
protected debug => bool TRUE protected autoReload => bool TRUE protected cache => object Twig_Cache_Filesystem(2){ private directory => string(65) "/var/www/vhosts/fessneki.hu/repo/frontend/application/cache/twig/" private options => integer 0 }
protected lexer => NULL protected parser => NULL protected compiler => NULL protected baseTemplateClass => string(13) "Twig_Template" protected extensions => array(6) ( "core" => object Twig_Extension_Core(4){ protected dateFormats => array(2) ( 0 => string(10) "F j, Y H:i" 1 => string(7) "%d days" ) protected numberFormat => array(3) ( 0 => integer 0 1 => string(1) "." 2 => string(1) "," ) protected timezone => NULL protected escapers => array(0) }
"debug" => object Twig_Extension_Debug(0){ }
"escaper" => object Twig_Extension_Escaper(1){ protected defaultStrategy => string(4) "html" }
"optimizer" => object Twig_Extension_Optimizer(1){ protected optimizers => integer -1 }
"string_loader" => object Twig_Extension_StringLoader(0){ }
"view_extension" => object View_Extensions(0){ }
) protected parsers => NULL protected visitors => NULL protected filters => NULL protected tests => NULL protected functions => NULL protected globals => NULL protected runtimeInitialized => bool FALSE protected extensionInitialized => bool FALSE protected loadedTemplates => NULL protected strictVariables => bool FALSE protected unaryOperators => NULL protected binaryOperators => NULL protected templateClassPrefix => string(15) "__TwigTemplate_" protected functionCallbacks => array(0) protected filterCallbacks => array(0) protected staging => object Twig_Extension_Staging(6){ protected functions => array(0) protected filters => array(0) protected visitors => array(0) protected tokenParsers => array(0) protected globals => array(0) protected tests => array(0) }
private originalCache => string(64) "/var/www/vhosts/fessneki.hu/repo/frontend/application/cache/twig" private bcWriteCacheFile => bool FALSE private bcGetCacheFilename => bool FALSE private lastModifiedExtension => integer 0 private extensionsByClass => array(6) ( "Twig_Extension_Core" => object Twig_Extension_Core(4){ protected dateFormats => array(2) ( 0 => string(10) "F j, Y H:i" 1 => string(7) "%d days" ) protected numberFormat => array(3) ( 0 => integer 0 1 => string(1) "." 2 => string(1) "," ) protected timezone => NULL protected escapers => array(0) }
"Twig_Extension_Debug" => object Twig_Extension_Debug(0){ }
"Twig_Extension_Escaper" => object Twig_Extension_Escaper(1){ protected defaultStrategy => string(4) "html" }
"Twig_Extension_Optimizer" => object Twig_Extension_Optimizer(1){ protected optimizers => integer -1 }
"Twig_Extension_StringLoader" => object Twig_Extension_StringLoader(0){ }
"View_Extensions" => object View_Extensions(0){ }
) private runtimeLoaders => array(0) private runtimes => array(0) private optionsHash => string(88) "core:debug:escaper:optimizer:string_loader:view_extension:0:5:6:1.30.0:1:Twig_Template:0" }{ public title => string(7) "Welcome" public meta_keywords => string(0) "" public meta_description => string(0) "" public meta_copywrite => string(0) "" }
public request => object Request(19){ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _filters => array(0) protected _uri => string(54) "<calendar>/<year>/<month>/<day>/<hour>/<min>/<picture>" protected _regex => array(5) ( "year" => string(8) "\d\d\d\d" "month" => string(4) "\d\d" "day" => string(4) "\d\d" "hour" => string(4) "\d\d" "min" => string(4) "\d\d" ) protected _defaults => array(3) ( "controller" => string(8) "calendar" "action" => string(5) "event" "lang" => string(2) "hu" ) protected _route_regex => string(136) "#^(?P<calendar>[^/.,;?\n]++)/(?P<year>\d\d\d\d)/(?P<month>\d\d)/(?P<day>\d\d)/(?P<hour>\d\d)/(?P<min>\d\d)/(?P<picture>[^/.,;?\n …" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(8) "Calendar" protected _action => string(5) "event" protected _uri => string(43) "fessneki-buda/2019/07/26/19/00/central-park" protected _external => bool FALSE protected _params => array(8) ( "calendar" => string(13) "fessneki-buda" "year" => string(4) "2019" "month" => string(2) "07" "day" => string(2) "26" "hour" => string(2) "19" "min" => string(2) "00" "picture" => string(12) "central-park" "lang" => string(2) "hu" ) protected _get => array(1) ( "/fessneki-buda/2019/07/26/19/00/central-park" => string(0) "" ) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "Authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}{ protected _status => integer 200 protected _header => object HTTP_Header(0)
}{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => NULL }92 93 // Create a new instance of the controller 94 $controller = $class->newInstance($request, $response); 95 96 // Run the controller's execute() method 97 $response = $class->getMethod('execute')->invoke($controller); 98 99 if ( ! $response instanceof Response) 100 { 101 // Controller failed to return a Response. 102 throw new Kohana_Exception('Controller failed to return a Response');
-
SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(54) "<calendar>/<year>/<month>/<day>/<hour>/<min>/<picture>" protected _regex => array(5) ( "year" => string(8) "\d\d\d\d" "month" => string(4) "\d\d" "day" => string(4) "\d\d" "hour" => string(4) "\d\d" "min" => string(4) "\d\d" ) protected _defaults => array(3) ( "controller" => string(8) "calendar" "action" => string(5) "event" "lang" => string(2) "hu" ) protected _route_regex => string(136) "#^(?P<calendar>[^/.,;?\n]++)/(?P<year>\d\d\d\d)/(?P<month>\d\d)/(?P<day>\d\d)/(?P<hour>\d\d)/(?P<min>\d\d)/(?P<picture>[^/.,;?\n …" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(8) "Calendar" protected _action => string(5) "event" protected _uri => string(43) "fessneki-buda/2019/07/26/19/00/central-park" protected _external => bool FALSE protected _params => array(8) ( "calendar" => string(13) "fessneki-buda" "year" => string(4) "2019" "month" => string(2) "07" "day" => string(2) "26" "hour" => string(2) "19" "min" => string(2) "00" "picture" => string(12) "central-park" "lang" => string(2) "hu" ) protected _get => array(1) ( "/fessneki-buda/2019/07/26/19/00/central-park" => string(0) "" ) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "Authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}1
object Response(5)
{ protected _status => integer 200 protected _header => object HTTP_Header(0)
{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => NULL }109 $orig_response = $response = Response::factory(); 110 111 if (($cache = $this->cache()) instanceof HTTP_Cache) 112 return $cache->execute($this, $request, $response); 113 114 $response = $this->execute_request($request, $response); 115 116 // Execute response callbacks 117 foreach ($this->header_callbacks() as $header => $callback) 118 { 119 if ($response->headers($header))
-
SYSPATH/classes/Request.php [ 85 ] » Kohana_Request_Client->execute(arguments)
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(54) "<calendar>/<year>/<month>/<day>/<hour>/<min>/<picture>" protected _regex => array(5) ( "year" => string(8) "\d\d\d\d" "month" => string(4) "\d\d" "day" => string(4) "\d\d" "hour" => string(4) "\d\d" "min" => string(4) "\d\d" ) protected _defaults => array(3) ( "controller" => string(8) "calendar" "action" => string(5) "event" "lang" => string(2) "hu" ) protected _route_regex => string(136) "#^(?P<calendar>[^/.,;?\n]++)/(?P<year>\d\d\d\d)/(?P<month>\d\d)/(?P<day>\d\d)/(?P<hour>\d\d)/(?P<min>\d\d)/(?P<picture>[^/.,;?\n …" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(8) "Calendar" protected _action => string(5) "event" protected _uri => string(43) "fessneki-buda/2019/07/26/19/00/central-park" protected _external => bool FALSE protected _params => array(8) ( "calendar" => string(13) "fessneki-buda" "year" => string(4) "2019" "month" => string(2) "07" "day" => string(2) "26" "hour" => string(2) "19" "min" => string(2) "00" "picture" => string(12) "central-park" "lang" => string(2) "hu" ) protected _get => array(1) ( "/fessneki-buda/2019/07/26/19/00/central-park" => string(0) "" ) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "Authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}80 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 81 ':uri' => $this->_uri, 82 )); 83 } 84 85 return $this->_client->execute($this); 86 } 87 88 }
-
DOCROOT/index.php [ 121 ] » Request->execute()
116 /** 117 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 118 * If no source is specified, the URI will be automatically detected. 119 */ 120 echo Request::factory(TRUE, array(), FALSE) 121 ->execute() 122 ->send_headers(TRUE) 123 ->body(); 124 }