APPPATH/bootstrap.php [ 226 ]
221 }
222 if (preg_match('/(?P<category>[0-9a-z-]+).html/', $params['category'], $matches))
223 {
224
225 preg_match_all('/-([0-9_]*).html/', $params['category'], $m);
226 $params['id']=$m[1][0];
227 $params['action']='item';
228 $params['category'] = substr($params['category'], 0, strrpos($params['category'], "/"));
229 }
230 }
231 if (isset($params['id']))
-
APPPATH/bootstrap.php [ 226 ] » Kohana_Core::error_handler()
0
integer 8
1
string(19) "Undefined offset: 0"
2
string(51) "/home/shopit.md/app/application/index/bootstrap.php"
3
integer 226
4
array(8) ( "route" => object Route(5)
{ protected _filters => array(1) ( 0 => object Closure(1)
"params" => array(5) ( "lang" => string(2) "ro" "slug" => string(7) "catalog" "category" => string(41) "electrocasnice/fiare-de-calcat/index.html" "controller" => string(7) "Catalog" "action" => string(5) "index" ) "request" => object Request(19){ public 0 => object Closure(1) { *RECURSION* } }
) protected _uri => string(35) "<lang>(/<slug>(/<category>(/<id>)))" protected _regex => array(4) ( "lang" => string(8) "ro|ru|en" "slug" => string(222) "kontakty|uslugi-servisnogo-centra|kak-zakazat/konfidencialnost|kak-zakazat/usloviya-polzovaniya|kak-zakazat/garantiya-na-tovary| …" "category" => string(12) "[a-z0-9./-]+" "id" => string(16) "[a-z0-9-/.html]+" ) protected _defaults => array(3) ( "controller" => string(5) "index" "action" => string(5) "index" "lang" => string(2) "ro" ) protected _route_regex => string(324) "#^(?P<lang>ro|ru|en)(?:/(?P<slug>kontakty|uslugi-servisnogo-centra|kak-zakazat/konfidencialnost|kak-zakazat/usloviya-polzovaniya …" }{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => string(69) "http://shopit.md/ro/catalog/electrocasnice/fiare-de-calcat/index.html" protected _route => NULL protected _routes => array(0) protected _header => object HTTP_Header(0)
"modules" => array(13) ( "menu1" => object stdClass(2){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => NULL protected _action => NULL protected _uri => string(52) "ro/catalog/electrocasnice/fiare-de-calcat/index.html" protected _external => bool FALSE protected _params => array(0) protected _get => array(1) ( "ro/catalog/electrocasnice/fiare-de-calcat/index_html" => 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) }
}{ public module => string(0) "" public slug_full => string(0) "" }
"catalog" => object stdClass(2){ public module => string(7) "Catalog" public slug_full => string(7) "catalog" }
"name11" => object stdClass(2){ public module => string(4) "Page" public slug_full => string(10) "o-kompanii" }
"howtobuy" => object stdClass(2){ public module => string(4) "Page" public slug_full => string(11) "kak-zakazat" }
"name14" => object stdClass(2){ public module => string(4) "Page" public slug_full => string(23) "kak-zakazat/kak-zakazat" }
"name15" => object stdClass(2){ public module => string(4) "Page" public slug_full => string(18) "kak-zakazat/oplata" }
"name16" => object stdClass(2){ public module => string(4) "Page" public slug_full => string(20) "kak-zakazat/dostavka" }
"name17" => object stdClass(2){ public module => string(4) "Page" public slug_full => string(31) "kak-zakazat/garantiya-na-tovary" }
"name18" => object stdClass(2){ public module => string(0) "" public slug_full => string(25) "kak-zakazat/obsluzhivanie" }
"name19" => object stdClass(2){ public module => string(4) "Page" public slug_full => string(32) "kak-zakazat/usloviya-polzovaniya" }
"name20" => object stdClass(2){ public module => string(4) "Page" public slug_full => string(28) "kak-zakazat/konfidencialnost" }
"name23" => object stdClass(2){ public module => string(4) "Page" public slug_full => string(24) "uslugi-servisnogo-centra" }
"contact" => object stdClass(2){ public module => string(7) "Contact" public slug_full => string(8) "kontakty" }
) "node" => object stdClass(2){ public module => string(7) "Contact" public slug_full => string(8) "kontakty" }
"name" => string(7) "contact" "matches" => array(3) ( 0 => string(10) "index.html" "category" => string(5) "index" 1 => string(5) "index" ) "m" => array(2) ( 0 => array(0) 1 => array(0) ) )221 } 222 if (preg_match('/(?P<category>[0-9a-z-]+).html/', $params['category'], $matches)) 223 { 224 225 preg_match_all('/-([0-9_]*).html/', $params['category'], $m); 226 $params['id']=$m[1][0]; 227 $params['action']='item'; 228 $params['category'] = substr($params['category'], 0, strrpos($params['category'], "/")); 229 } 230 } 231 if (isset($params['id']))
-
SYSPATH/classes/Kohana/Route.php [ 462 ] » {closure}()
0
object Route(5)
{ protected _filters => array(1) ( 0 => object Closure(1)
{ public 0 => object Closure(1) { *RECURSION* } }
) protected _uri => string(35) "<lang>(/<slug>(/<category>(/<id>)))" protected _regex => array(4) ( "lang" => string(8) "ro|ru|en" "slug" => string(222) "kontakty|uslugi-servisnogo-centra|kak-zakazat/konfidencialnost|kak-zakazat/usloviya-polzovaniya|kak-zakazat/garantiya-na-tovary| …" "category" => string(12) "[a-z0-9./-]+" "id" => string(16) "[a-z0-9-/.html]+" ) protected _defaults => array(3) ( "controller" => string(5) "index" "action" => string(5) "index" "lang" => string(2) "ro" ) protected _route_regex => string(324) "#^(?P<lang>ro|ru|en)(?:/(?P<slug>kontakty|uslugi-servisnogo-centra|kak-zakazat/konfidencialnost|kak-zakazat/usloviya-polzovaniya …" }1
array(5) ( "lang" => string(2) "ro" "slug" => string(7) "catalog" "category" => string(41) "electrocasnice/fiare-de-calcat/index.html" "controller" => string(7) "Catalog" "action" => string(5) "index" )
2
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => string(69) "http://shopit.md/ro/catalog/electrocasnice/fiare-de-calcat/index.html" protected _route => NULL protected _routes => array(0) protected _header => object HTTP_Header(0)
{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => NULL protected _action => NULL protected _uri => string(52) "ro/catalog/electrocasnice/fiare-de-calcat/index.html" protected _external => bool FALSE protected _params => array(0) protected _get => array(1) ( "ro/catalog/electrocasnice/fiare-de-calcat/index_html" => 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) }
}457 if ($this->_filters) 458 { 459 foreach ($this->_filters as $callback) 460 { 461 // Execute the filter giving it the route, params, and request 462 $return = call_user_func($callback, $this, $params, $request); 463 464 if ($return === FALSE) 465 { 466 // Filter has aborted the match 467 return FALSE;
-
SYSPATH/classes/Kohana/Request.php [ 470 ] » Kohana_Route->matches()
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => string(69) "http://shopit.md/ro/catalog/electrocasnice/fiare-de-calcat/index.html" protected _route => NULL protected _routes => array(0) protected _header => object HTTP_Header(0)
{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => NULL protected _action => NULL protected _uri => string(52) "ro/catalog/electrocasnice/fiare-de-calcat/index.html" protected _external => bool FALSE protected _params => array(0) protected _get => array(1) ( "ro/catalog/electrocasnice/fiare-de-calcat/index_html" => 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) }
}465 $params = NULL; 466 467 foreach ($routes as $name => $route) 468 { 469 // We found something suitable 470 if ($params = $route->matches($request)) 471 { 472 return array( 473 'params' => $params, 474 'route' => $route, 475 );
-
SYSPATH/classes/Kohana/Request.php [ 942 ] » Kohana_Request::process()
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => string(69) "http://shopit.md/ro/catalog/electrocasnice/fiare-de-calcat/index.html" protected _route => NULL protected _routes => array(0) protected _header => object HTTP_Header(0)
{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => NULL protected _action => NULL protected _uri => string(52) "ro/catalog/electrocasnice/fiare-de-calcat/index.html" protected _external => bool FALSE protected _params => array(0) protected _get => array(1) ( "ro/catalog/electrocasnice/fiare-de-calcat/index_html" => 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
array(7) ( "kopauth" => object Route(5)
{ protected _filters => array(0) protected _uri => string(44) "kopauth(/<action>(/<strategy>(/<callback>)))" protected _regex => array(0) protected _defaults => array(3) ( "directory" => string(7) "Kopauth" "controller" => string(4) "Auth" "action" => string(9) "providers" ) protected _route_regex => string(107) "#^kopauth(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<strategy>[^/.,;?\n]++)(?:/(?P<callback>[^/.,;?\n]++))?)?)?$#uD" }
"opauth" => object Route(5){ protected _filters => array(1) ( 0 => object Closure(1)
"account" => object Route(5){ public 0 => object Closure(1) { *RECURSION* } }
) protected _uri => string(61) "<directory>/<controller>(/<action>(/<strategy>(/<callback>)))" protected _regex => array(2) ( "directory" => string(4) "user" "controller" => string(6) "opauth" ) protected _defaults => array(3) ( "directory" => string(4) "user" "controller" => string(5) "index" "action" => string(5) "index" ) protected _route_regex => string(142) "#^(?P<directory>user)/(?P<controller>opauth)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<strategy>[^/.,;?\n]++)(?:/(?P<callback>[^/.,;?\n …" }{ protected _filters => array(1) ( 0 => object Closure(1)
"user" => object Route(5){ public 0 => object Closure(1) { *RECURSION* } }
) protected _uri => string(44) "<directory>(/<controller>(/<action>(/<id>)))" protected _regex => array(2) ( "directory" => string(4) "user" "controller" => string(5) "offer" ) protected _defaults => array(3) ( "directory" => string(4) "user" "controller" => string(5) "offer" "action" => string(5) "index" ) protected _route_regex => string(108) "#^(?P<directory>user)(?:/(?P<controller>offer)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?$#uD" }{ protected _filters => array(1) ( 0 => object Closure(1)
"cart" => object Route(5){ public 0 => object Closure(1) { *RECURSION* } }
) protected _uri => string(30) "<controller>(/<action>(/<id>))" protected _regex => array(1) ( "controller" => string(4) "user" ) protected _defaults => array(2) ( "controller" => string(4) "user" "action" => string(5) "index" ) protected _route_regex => string(82) "#^(?P<controller>user)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?$#uD" }{ protected _filters => array(1) ( 0 => object Closure(1)
"smap" => object Route(5){ public 0 => object Closure(1) { *RECURSION* } }
) protected _uri => string(37) "<lang>/<controller>(/<action>(/<id>))" protected _regex => array(3) ( "lang" => string(8) "ro|ru|en" "controller" => string(4) "cart" "id" => string(16) "[a-z0-9-/.html]+" ) protected _defaults => array(2) ( "controller" => string(4) "cart" "action" => string(5) "index" ) protected _route_regex => string(105) "#^(?P<lang>ro|ru|en)/(?P<controller>cart)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[a-z0-9-/.html]+))?)?$#uD" }{ protected _filters => array(1) ( 0 => object Closure(1)
"default" => object Route(5){ public 0 => object Closure(1) { *RECURSION* } }
) protected _uri => string(35) "<lang>(/<slug>(/<category>(/<id>)))" protected _regex => array(4) ( "lang" => string(8) "ro|ru|en" "slug" => string(222) "kontakty|uslugi-servisnogo-centra|kak-zakazat/konfidencialnost|kak-zakazat/usloviya-polzovaniya|kak-zakazat/garantiya-na-tovary| …" "category" => string(12) "[a-z0-9./-]+" "id" => string(16) "[a-z0-9-/.html]+" ) protected _defaults => array(3) ( "controller" => string(5) "index" "action" => string(5) "index" "lang" => string(2) "ro" ) protected _route_regex => string(324) "#^(?P<lang>ro|ru|en)(?:/(?P<slug>kontakty|uslugi-servisnogo-centra|kak-zakazat/konfidencialnost|kak-zakazat/usloviya-polzovaniya …" }{ protected _filters => array(0) protected _uri => string(32) "(<controller>(/<action>(/<id>)))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(5) "index" "action" => string(5) "index" ) protected _route_regex => string(95) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?$#uD" }
)937 */ 938 public function execute() 939 { 940 if ( ! $this->_external) 941 { 942 $processed = Request::process($this, $this->_routes); 943 944 if ($processed) 945 { 946 // Store the matching route 947 $this->_route = $processed['route'];
-
DOCROOT/index.php [ 122 ] » Kohana_Request->execute()
117 /** 118 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 119 * If no source is specified, the URI will be automatically detected. 120 */ 121 echo Request::factory(TRUE, array(), FALSE) 122 ->execute() 123 ->send_headers(TRUE) 124 ->body(); 125 }