APPPATH/classes/controller/templates/news/ancient.php [ 34 ]
29 ->current()
30 ;
31
32 if ($item['id'] <= 0)
33 {
34 throw new HTTP_Exception_404('Not found');
35 }
36
37 // Photos
38 $photos_table = $table_name.'photos';
39 $data['photos'] = DB::select($photos_table.'.id', $photos_table.'.pic', $photos_table.'_name.name')
-
{PHP internal call} » Controller_Templates_News_Ancient->action_index()
-
SYSPATH/classes/kohana/request/client/internal.php [ 118 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Templates_News_Ancient(2)
{ public request => object Request(21)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _callback => NULL protected _uri => string(30) "tpl/<directory>(/<tpl_params>)" protected _regex => array(1) ( "tpl_params" => string(16) "[a-zA-Z0-9-_/.]+" ) protected _defaults => array(1) ( "controller" => string(7) "ancient" ) protected _route_regex => string(75) "#^tpl/(?P<directory>[^/.,;?\n]++)(?:/(?P<tpl_params>[a-zA-Z0-9-_/.]+))?$#uD" }
protected _routes => NULL protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(14) "templates_news" protected _controller => string(7) "ancient" protected _action => string(5) "index" protected _uri => string(26) "tpl/templates_news/52.html" protected _external => bool FALSE protected _params => array(1) ( "tpl_params" => string(7) "52.html" ) protected _get => array(0) protected _post => array(2) ( "block_id" => string(1) "2" "template_id" => string(3) "225" ) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
public _injected_routes => 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.1" }113 throw new HTTP_Exception_404('The requested URL :uri was not found on this server.', 114 array(':uri' => $request->uri())); 115 } 116 117 $method = $class->getMethod('action_'.$action); 118 $method->invoke($controller); 119 120 // Execute the "after action" method 121 $class->getMethod('after')->invoke($controller); 122 } 123 catch (Exception $e)
-
SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)
0
object Request(21)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(30) "tpl/<directory>(/<tpl_params>)" protected _regex => array(1) ( "tpl_params" => string(16) "[a-zA-Z0-9-_/.]+" ) protected _defaults => array(1) ( "controller" => string(7) "ancient" ) protected _route_regex => string(75) "#^tpl/(?P<directory>[^/.,;?\n]++)(?:/(?P<tpl_params>[a-zA-Z0-9-_/.]+))?$#uD" }
protected _routes => NULL protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(14) "templates_news" protected _controller => string(7) "ancient" protected _action => string(5) "index" protected _uri => string(26) "tpl/templates_news/52.html" protected _external => bool FALSE protected _params => array(1) ( "tpl_params" => string(7) "52.html" ) protected _get => array(0) protected _post => array(2) ( "block_id" => string(1) "2" "template_id" => string(3) "225" ) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
public _injected_routes => array(0) }59 public function execute(Request $request) 60 { 61 if ($this->_cache instanceof HTTP_Cache) 62 return $this->_cache->execute($this, $request); 63 64 return $this->execute_request($request); 65 } 66 67 /** 68 * Processes the request passed to it and returns the response from 69 * the URI resource identified.
-
SYSPATH/classes/kohana/request.php [ 1138 ] » Kohana_Request_Client->execute(arguments)
0
object Request(21)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(30) "tpl/<directory>(/<tpl_params>)" protected _regex => array(1) ( "tpl_params" => string(16) "[a-zA-Z0-9-_/.]+" ) protected _defaults => array(1) ( "controller" => string(7) "ancient" ) protected _route_regex => string(75) "#^tpl/(?P<directory>[^/.,;?\n]++)(?:/(?P<tpl_params>[a-zA-Z0-9-_/.]+))?$#uD" }
protected _routes => NULL protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(14) "templates_news" protected _controller => string(7) "ancient" protected _action => string(5) "index" protected _uri => string(26) "tpl/templates_news/52.html" protected _external => bool FALSE protected _params => array(1) ( "tpl_params" => string(7) "52.html" ) protected _get => array(0) protected _post => array(2) ( "block_id" => string(1) "2" "template_id" => string(3) "225" ) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
public _injected_routes => array(0) }1133 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 1134 ':uri' => $this->_uri, 1135 )); 1136 } 1137 1138 return $this->_client->execute($this); 1139 } 1140 1141 /** 1142 * Returns whether this request is the initial request Kohana received. 1143 * Can be used to test for sub requests.
-
APPPATH/classes/controller/core/main.php [ 85 ] » Kohana_Request->execute()
80 $content = Request::factory('tpl/templates_'.$tpl['tpl_name'].'/'.General::$template_route) 81 ->post(array( 82 'block_id' => $tpl['block_id'], 83 'template_id' => $tpl['id'] 84 )) 85 ->execute() 86 ->body() 87 ; 88 89 $prepare_return = General::$info['templates'][$tpl['id']]['prepare_return']; 90
-
APPPATH/classes/controller/core/main.php [ 21 ] » Controller_Core_Main::set_templates(arguments)
0
array(8) ( 0 => array(14) ( "id" => string(3) "187" "categories_id" => string(1) "9" "block_id" => NULL "tpl_name" => string(4) "main" "params" => NULL "stay_container" => string(1) "1" "sort" => string(1) "0" "active" => string(1) "1" "_status" => string(1) "1" "_create_time" => NULL "_create_user" => NULL "_update_time" => NULL "_update_user" => NULL "in_sitemap" => string(1) "0" ) 1 => array(14) ( "id" => string(3) "212" "categories_id" => string(1) "9" "block_id" => string(1) "1" "tpl_name" => string(4) "logo" "params" => string(103) "Array ("name" => "Логотип","type" => "Информация","active" => "1","in_sitemap" => "0")" "stay_container" => string(1) "0" "sort" => string(2) "10" "active" => string(1) "1" "_status" => string(1) "1" "_create_time" => NULL "_create_user" => NULL "_update_time" => NULL "_update_user" => NULL "in_sitemap" => string(1) "0" ) 2 => array(14) ( "id" => string(3) "303" "categories_id" => string(1) "9" "block_id" => string(1) "2" "tpl_name" => string(14) "headercategory" "params" => string(70) "Array ("name" => "Headercategory","active" => "1","in_sitemap" => "0")" "stay_container" => string(1) "0" "sort" => string(2) "10" "active" => string(1) "1" "_status" => string(1) "1" "_create_time" => NULL "_create_user" => NULL "_update_time" => NULL "_update_user" => NULL "in_sitemap" => string(1) "0" ) 3 => array(14) ( "id" => string(3) "214" "categories_id" => string(1) "9" "block_id" => string(1) "2" "tpl_name" => string(11) "breadcrumbs" "params" => string(99) "Array ("name" => "Крошки","type" => "Навигация","active" => "1","in_sitemap" => "0")" "stay_container" => string(1) "0" "sort" => string(2) "20" "active" => string(1) "1" "_status" => string(1) "1" "_create_time" => NULL "_create_user" => NULL "_update_time" => NULL "_update_user" => NULL "in_sitemap" => string(1) "0" ) 4 => array(14) ( "id" => string(3) "225" "categories_id" => string(1) "9" "block_id" => string(1) "2" "tpl_name" => string(4) "news" "params" => string(109) "Array ("name" => "Статьи","type" => "Статьи","limit" => "20","active" => "1","in_sitemap" => "0")" "stay_container" => string(1) "0" "sort" => string(2) "30" "active" => string(1) "1" "_status" => string(1) "1" "_create_time" => NULL "_create_user" => NULL "_update_time" => NULL "_update_user" => NULL "in_sitemap" => string(1) "0" ) 5 => array(14) ( "id" => string(3) "215" "categories_id" => string(1) "9" "block_id" => string(1) "3" "tpl_name" => string(10) "menufooter" "params" => string(101) "Array ("name" => "Меню в футере","type" => "Меню","active" => "1","in_sitemap" => "0")" "stay_container" => string(1) "0" "sort" => string(2) "10" "active" => string(1) "1" "_status" => string(1) "1" "_create_time" => NULL "_create_user" => NULL "_update_time" => NULL "_update_user" => NULL "in_sitemap" => string(1) "0" ) 6 => array(14) ( "id" => string(3) "216" "categories_id" => string(1) "9" "block_id" => string(1) "3" "tpl_name" => string(10) "infofooter" "params" => string(85) "Array ("name" => "Infofooter","type" => "Footer","active" => "1","in_sitemap" => "0")" "stay_container" => string(1) "0" "sort" => string(2) "20" "active" => string(1) "1" "_status" => string(1) "1" "_create_time" => NULL "_create_user" => NULL "_update_time" => NULL "_update_user" => NULL "in_sitemap" => string(1) "0" ) 7 => array(14) ( "id" => string(3) "418" "categories_id" => string(1) "9" "block_id" => string(1) "3" "tpl_name" => string(8) "counters" "params" => string(68) "Array ("name" => "Счетчики","type" => "SEO","active" => "1")" "stay_container" => string(1) "0" "sort" => string(2) "30" "active" => string(1) "1" "_status" => string(1) "1" "_create_time" => NULL "_create_user" => NULL "_update_time" => NULL "_update_user" => NULL "in_sitemap" => string(1) "0" ) )
16 17 public function action_index () 18 { 19 /************************** Templates content ****************************/ 20 $templates = self::get_templates(General::$category); 21 self::set_templates($templates); 22 23 if (General::$ajax_is) 24 { 25 $content = Request::factory('tpl/templates_'.General::$ajax_tpl.'/'.General::$template_route) 26 ->execute()
-
{PHP internal call} » Controller_Core_Main->action_index()
-
SYSPATH/classes/kohana/request/client/internal.php [ 118 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Core_Main(2)
{ public request => object Request(21)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _callback => NULL protected _uri => string(7) "(<url>)" protected _regex => array(1) ( "url" => string(16) "[a-zA-Z0-9-_/.]+" ) protected _defaults => array(2) ( "directory" => string(4) "core" "controller" => string(4) "main" ) protected _route_regex => string(36) "#^(?:(?P<url>[a-zA-Z0-9-_/.]+))?$#uD" }
protected _routes => NULL protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.0" }{ }
protected _body => NULL protected _directory => string(4) "core" protected _controller => string(4) "main" protected _action => string(5) "index" protected _uri => string(15) "ua/news/52.html" protected _external => bool FALSE protected _params => array(1) ( "url" => string(15) "ua/news/52.html" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
public _injected_routes => 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" }113 throw new HTTP_Exception_404('The requested URL :uri was not found on this server.', 114 array(':uri' => $request->uri())); 115 } 116 117 $method = $class->getMethod('action_'.$action); 118 $method->invoke($controller); 119 120 // Execute the "after action" method 121 $class->getMethod('after')->invoke($controller); 122 } 123 catch (Exception $e)
-
SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)
0
object Request(21)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(7) "(<url>)" protected _regex => array(1) ( "url" => string(16) "[a-zA-Z0-9-_/.]+" ) protected _defaults => array(2) ( "directory" => string(4) "core" "controller" => string(4) "main" ) protected _route_regex => string(36) "#^(?:(?P<url>[a-zA-Z0-9-_/.]+))?$#uD" }
protected _routes => NULL protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.0" }{ }
protected _body => NULL protected _directory => string(4) "core" protected _controller => string(4) "main" protected _action => string(5) "index" protected _uri => string(15) "ua/news/52.html" protected _external => bool FALSE protected _params => array(1) ( "url" => string(15) "ua/news/52.html" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
public _injected_routes => array(0) }59 public function execute(Request $request) 60 { 61 if ($this->_cache instanceof HTTP_Cache) 62 return $this->_cache->execute($this, $request); 63 64 return $this->execute_request($request); 65 } 66 67 /** 68 * Processes the request passed to it and returns the response from 69 * the URI resource identified.
-
SYSPATH/classes/kohana/request.php [ 1138 ] » Kohana_Request_Client->execute(arguments)
0
object Request(21)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(7) "(<url>)" protected _regex => array(1) ( "url" => string(16) "[a-zA-Z0-9-_/.]+" ) protected _defaults => array(2) ( "directory" => string(4) "core" "controller" => string(4) "main" ) protected _route_regex => string(36) "#^(?:(?P<url>[a-zA-Z0-9-_/.]+))?$#uD" }
protected _routes => NULL protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.0" }{ }
protected _body => NULL protected _directory => string(4) "core" protected _controller => string(4) "main" protected _action => string(5) "index" protected _uri => string(15) "ua/news/52.html" protected _external => bool FALSE protected _params => array(1) ( "url" => string(15) "ua/news/52.html" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
public _injected_routes => array(0) }1133 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 1134 ':uri' => $this->_uri, 1135 )); 1136 } 1137 1138 return $this->_client->execute($this); 1139 } 1140 1141 /** 1142 * Returns whether this request is the initial request Kohana received. 1143 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 133 ] » Kohana_Request->execute()
128 */ 129 $request = Request::factory(); 130 131 try 132 { 133 $response = $request->execute(); 134 echo $response->send_headers()->body(); 135 } 136 catch (Exception $e) 137 { 138 if (Kohana::$environment === Kohana::DEVELOPMENT)