APPPATH/classes/Controller/Home.php [ 19 ]
14 return false;
15 }
16 $res1 = explode($key, $str); // =${deal}|prop_kind=${prop_kind}|field=${field}|findtext=${text}|
17 $sub1 = $res1[1];
18 $res2 = explode('=', $sub1);
19 $sub2 = $res2[1]; // ${text}|
20 $res3 = explode("|", $sub2);
21 return $res3[0];
22 }
23
24 public function getKey($route, $key) {
-
APPPATH/classes/Controller/Home.php [ 19 ] » KO7_Core::error_handler( arguments )
0
integer 8
1
string(19) "Undefined offset: 1"
2
string(84) "/var/www/newreal/data/www/newreal-agency.com/application/classes/Controller/Home.php"
3
integer 19
4
array(6) ( "str" => string(155) "mode=all|deal=all|prop_kind=all|like=property_complex|findtext=����street-chernigovskaya_streetproperty_complex-ozernestreet-sor …" "key" => string(4) "sort" "res1" => array(2) ( 0 => string(133) "mode=all|deal=all|prop_kind=all|like=property_complex|findtext=����street-chernigovskaya_streetproperty_complex-ozernestreet-" 1 => string(18) "irovochnaya_street" ) "sub1" => string(18) "irovochnaya_street" "res2" => array(1) ( 0 => string(18) "irovochnaya_street" ) "sub2" => NULL )
14 return false; 15 } 16 $res1 = explode($key, $str); // =${deal}|prop_kind=${prop_kind}|field=${field}|findtext=${text}| 17 $sub1 = $res1[1]; 18 $res2 = explode('=', $sub1); 19 $sub2 = $res2[1]; // ${text}| 20 $res3 = explode("|", $sub2); 21 return $res3[0]; 22 } 23 24 public function getKey($route, $key) {
-
APPPATH/classes/Controller/Home.php [ 487 ] » Controller_Home->get_key( arguments )
0
string(155) "mode=all|deal=all|prop_kind=all|like=property_complex|findtext=����street-chernigovskaya_streetproperty_complex-ozernestreet-sor …"
1
string(4) "sort"
482 $str = $route; 483 // $key = $str; 484 $mode = $this->get_key($str, 'mode'); 485 //echo $mode;exit(); 486 487 $sort = $this->get_key($str, 'sort'); 488 if (strpos($sort, '__') !== false) { 489 $sort = str_replace('__', ' ', $sort); 490 } 491 if ($sort) { 492 $order = " order by $sort ";
-
SYSPATH/classes/KO7/Controller.php [ 85 ] » Controller_Home->action_catalog( )
80 [':uri' => $this->request->uri()] 81 )->request($this->request); 82 } 83 84 // Execute the action itself 85 $this->{$action}(); 86 87 // Execute the "after action" method 88 $this->after(); 89 90 // Return the response
-
{PHP internal call} » KO7_Controller->execute( )
-
SYSPATH/classes/KO7/Request/Client/Internal.php [ 87 ] » ReflectionMethod->invoke( arguments )
0
object Controller_Home(6)
{ public template => object View(2)
{ protected _file => string(80) "/var/www/newreal/data/www/newreal-agency.com/application/views/home_template.php" protected _data => array(0) }
public route => string(0) "" public activeFilters => array(0) public auto_render => bool TRUE 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 => string(230) "http://newreal-agency.com/home/catalog/1/*/mode=all%7Cdeal=all%7Cprop_kind=all%7Clike=property_complex%7Cfindtext=%EF%BF%BD%EF%B …" protected _route => object Route(5)
public response => object Response(5){ protected _filters => array(0) protected _uri => string(59) "(<controller>(/<action>(/<id>(/<text>(/<key>(/<param>))))))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(4) "home" "action" => string(5) "index" ) protected _route_regex => string(179) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++)(?:/(?P<text>[^/.,;?\n]++)(?:/(?P<key>[^/., …" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "Home" protected _action => string(7) "catalog" protected _uri => string(172) "home/catalog/1/*/mode=all|deal=all|prop_kind=all|like=property_complex|findtext=����street-chernigovskaya_streetproperty_complex …" protected _external => bool FALSE protected _params => array(3) ( "id" => string(1) "1" "text" => string(1) "*" "key" => string(155) "mode=all|deal=all|prop_kind=all|like=property_complex|findtext=����street-chernigovskaya_streetproperty_complex-ozernestreet-sor …" ) protected _get => array(1) ( "page" => string(1) "1" ) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(8){ 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 => string(8) "HTTP/1.0" }82 83 // Create a new instance of the controller 84 $controller = $class->newInstance($request, $response); 85 86 // Run the controller's execute() method 87 $response = $class->getMethod('execute')->invoke($controller); 88 89 if ( ! $response instanceof Response) 90 { 91 // Controller failed to return a Response. 92 throw new KO7_Exception('Controller failed to return a Response');
-
SYSPATH/classes/KO7/Request/Client.php [ 115 ] » KO7_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 => string(230) "http://newreal-agency.com/home/catalog/1/*/mode=all%7Cdeal=all%7Cprop_kind=all%7Clike=property_complex%7Cfindtext=%EF%BF%BD%EF%B …" protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(59) "(<controller>(/<action>(/<id>(/<text>(/<key>(/<param>))))))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(4) "home" "action" => string(5) "index" ) protected _route_regex => string(179) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++)(?:/(?P<text>[^/.,;?\n]++)(?:/(?P<key>[^/., …" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "Home" protected _action => string(7) "catalog" protected _uri => string(172) "home/catalog/1/*/mode=all|deal=all|prop_kind=all|like=property_complex|findtext=����street-chernigovskaya_streetproperty_complex …" protected _external => bool FALSE protected _params => array(3) ( "id" => string(1) "1" "text" => string(1) "*" "key" => string(155) "mode=all|deal=all|prop_kind=all|like=property_complex|findtext=����street-chernigovskaya_streetproperty_complex-ozernestreet-sor …" ) protected _get => array(1) ( "page" => string(1) "1" ) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(8){ 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 => string(8) "HTTP/1.0" }110 $orig_response = $response = Response::factory(['_protocol' => $request->protocol()]); 111 112 if (($cache = $this->cache()) instanceof HTTP_Cache) 113 return $cache->execute($this, $request, $response); 114 115 $response = $this->execute_request($request, $response); 116 117 // Execute response callbacks 118 foreach ($this->header_callbacks() as $header => $callback) 119 { 120 if ($response->headers($header))
-
SYSPATH/classes/KO7/Request.php [ 965 ] » KO7_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 => string(230) "http://newreal-agency.com/home/catalog/1/*/mode=all%7Cdeal=all%7Cprop_kind=all%7Clike=property_complex%7Cfindtext=%EF%BF%BD%EF%B …" protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(59) "(<controller>(/<action>(/<id>(/<text>(/<key>(/<param>))))))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(4) "home" "action" => string(5) "index" ) protected _route_regex => string(179) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++)(?:/(?P<text>[^/.,;?\n]++)(?:/(?P<key>[^/., …" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "Home" protected _action => string(7) "catalog" protected _uri => string(172) "home/catalog/1/*/mode=all|deal=all|prop_kind=all|like=property_complex|findtext=����street-chernigovskaya_streetproperty_complex …" protected _external => bool FALSE protected _params => array(3) ( "id" => string(1) "1" "text" => string(1) "*" "key" => string(155) "mode=all|deal=all|prop_kind=all|like=property_complex|findtext=����street-chernigovskaya_streetproperty_complex-ozernestreet-sor …" ) protected _get => array(1) ( "page" => string(1) "1" ) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(8){ 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) }
}960 throw new Request_Exception('Unable to execute :uri without a KO7_Request_Client', [ 961 ':uri' => $this->_uri, 962 ]); 963 } 964 965 return $this->_client->execute($this); 966 } 967 968 /** 969 * Returns whether this request is the initial request KO7 received. 970 * Can be used to test for sub requests.
-
DOCROOT/public/index.php [ 140 ] » KO7_Request->execute( )
135 /** 136 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 137 * If no source is specified, the URI will be automatically detected. 138 */ 139 echo Request::factory(TRUE, [], FALSE) 140 ->execute() 141 ->send_headers(TRUE) 142 ->body(); 143 } 144 145