SYSPATH/classes/Kohana/View.php [ 257 ]
252 */
253 public function set_filename($file)
254 {
255 if (($path = Kohana::find_file('views', $file)) === FALSE)
256 {
257 throw new View_Exception('The requested view :file could not be found', array(
258 ':file' => $file,
259 ));
260 }
261
262 // Store the file path locally
-
SYSPATH/classes/Kohana/View.php [ 137 ] » Kohana_View->set_filename(arguments)
0
string(28) "shop/list_search_brand_empty"
132 */ 133 public function __construct($file = NULL, array $data = NULL) 134 { 135 if ($file !== NULL) 136 { 137 $this->set_filename($file); 138 } 139 140 if ($data !== NULL) 141 { 142 // Add the values to the current data
-
SYSPATH/classes/Kohana/View.php [ 30 ] » Kohana_View->__construct(arguments)
0
string(28) "shop/list_search_brand_empty"
1
NULL
25 * @param array $data array of values 26 * @return View 27 */ 28 public static function factory($file = NULL, array $data = NULL) 29 { 30 return new View($file, $data); 31 } 32 33 /** 34 * Captures the output that is generated when a view is included. 35 * The view data will be extracted to make local variables. This method
-
APPPATH/classes/Controller/Actions.php [ 272 ] » Kohana_View::factory(arguments)
0
string(28) "shop/list_search_brand_empty"
267 $shops_n_categories = Model_Shop::list_shops($lang); 268 $jumper = View::factory('shop/right_jumper') 269 ->set('shops_n_categories', $shops_n_categories) 270 ; 271 272 $view = View::factory('shop/'.$search_view) 273 ->set('section', $this->section) 274 ->set('items', $items) 275 ->set('data', $data) 276 ->set('path', URL::section($this->section->id)) 277 ->set('header', $header)
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Actions->action_search()
79 array(':uri' => $this->request->uri()) 80 )->request($this->request); 81 } 82 83 // Execute the action itself 84 $this->{$action}(); 85 86 // Execute the "after action" method 87 $this->after(); 88 89 // Return the response
-
{PHP internal call} » Kohana_Controller->execute()
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Actions(6)
{ public template => object View(2)
{ protected _file => string(64) "/var/www/bl/data/www/bl.lv/application/views/global/template.php" protected _data => array(0) }
public auto_render => bool TRUE protected section => object Model_Section(35){ protected _created_column => array(2) ( "column" => string(12) "date_created" "format" => string(11) "Y-m-d H:i:s" ) protected _updated_column => array(2) ( "column" => string(12) "date_updated" "format" => string(11) "Y-m-d H:i:s" ) protected _sorting => array(1) ( "list_order" => string(3) "ASC" ) protected _has_one => array(1) ( "textdoc" => array(2) ( "model" => string(7) "Textdoc" "foreign_key" => string(10) "section_id" ) ) protected _cmsEditAction => string(4) "view" protected _belongs_to => array(0) protected _has_many => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(22) ( "id" => NULL "parent_id" => NULL "module_id" => NULL "lang" => NULL "hash" => NULL "controller" => NULL "action" => NULL "template" => NULL "list_order" => NULL "user_id" => NULL "date_created" => NULL "date_updated" => NULL "title" => NULL "link" => NULL "redirect" => NULL "target" => NULL "metadescription" => NULL "metakeywords" => NULL "intro" => NULL "config" => NULL "status" => NULL "image" => NULL ) protected _changed => array(0) protected _original_values => array(0) protected _related => array(0) protected _valid => bool FALSE protected _loaded => bool FALSE protected _saved => bool FALSE protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(7) "section" protected _object_plural => string(8) "sections" protected _table_name => string(8) "sections" protected _table_columns => array(22) ( "id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(2) "id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 1 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(14) "auto_increment" "key" => string(3) "PRI" "privileges" => string(31) "select,insert,update,references" ) "parent_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(9) "parent_id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 2 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "module_id" => array(12) ( "type" => string(6) "string" "column_name" => string(9) "module_id" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 3 "character_maximum_length" => string(2) "64" "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "lang" => array(13) ( "type" => string(6) "string" "exact" => bool TRUE "column_name" => string(4) "lang" "column_default" => NULL "data_type" => string(4) "char" "is_nullable" => bool FALSE "ordinal_position" => integer 4 "character_maximum_length" => string(1) "2" "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "hash" => array(12) ( "type" => string(6) "string" "column_name" => string(4) "hash" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 5 "character_maximum_length" => string(2) "16" "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "controller" => array(12) ( "type" => string(6) "string" "column_name" => string(10) "controller" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 6 "character_maximum_length" => string(2) "64" "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "action" => array(12) ( "type" => string(6) "string" "column_name" => string(6) "action" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 7 "character_maximum_length" => string(2) "64" "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "template" => array(12) ( "type" => string(6) "string" "column_name" => string(8) "template" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 8 "character_maximum_length" => string(2) "64" "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "list_order" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(10) "list_order" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 9 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "user_id" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(7) "user_id" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool FALSE "ordinal_position" => integer 10 "display" => string(1) "4" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "date_created" => array(10) ( "type" => string(6) "string" "column_name" => string(12) "date_created" "column_default" => NULL "data_type" => string(8) "datetime" "is_nullable" => bool FALSE "ordinal_position" => integer 11 "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "date_updated" => array(10) ( "type" => string(6) "string" "column_name" => string(12) "date_updated" "column_default" => NULL "data_type" => string(8) "datetime" "is_nullable" => bool FALSE "ordinal_position" => integer 12 "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "title" => array(12) ( "type" => string(6) "string" "column_name" => string(5) "title" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 13 "character_maximum_length" => string(2) "64" "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "link" => array(12) ( "type" => string(6) "string" "column_name" => string(4) "link" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 14 "character_maximum_length" => string(2) "64" "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "redirect" => array(12) ( "type" => string(6) "string" "column_name" => string(8) "redirect" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 15 "character_maximum_length" => string(3) "255" "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "target" => array(12) ( "type" => string(6) "string" "column_name" => string(6) "target" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 16 "character_maximum_length" => string(1) "8" "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "metadescription" => array(12) ( "type" => string(6) "string" "character_maximum_length" => string(5) "65535" "column_name" => string(15) "metadescription" "column_default" => NULL "data_type" => string(4) "text" "is_nullable" => bool FALSE "ordinal_position" => integer 17 "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "metakeywords" => array(12) ( "type" => string(6) "string" "character_maximum_length" => string(5) "65535" "column_name" => string(12) "metakeywords" "column_default" => NULL "data_type" => string(4) "text" "is_nullable" => bool FALSE "ordinal_position" => integer 18 "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "intro" => array(12) ( "type" => string(6) "string" "character_maximum_length" => string(5) "65535" "column_name" => string(5) "intro" "column_default" => NULL "data_type" => string(4) "text" "is_nullable" => bool FALSE "ordinal_position" => integer 19 "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "config" => array(12) ( "type" => string(6) "string" "character_maximum_length" => string(5) "65535" "column_name" => string(6) "config" "column_default" => NULL "data_type" => string(4) "text" "is_nullable" => bool FALSE "ordinal_position" => integer 20 "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "status" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(3) "255" "column_name" => string(6) "status" "column_default" => string(1) "2" "data_type" => string(16) "tinyint unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 21 "display" => string(1) "1" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "image" => array(12) ( "type" => string(6) "string" "column_name" => string(5) "image" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 22 "character_maximum_length" => string(2) "64" "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) ) protected _serialize_columns => array(0) protected _primary_key => string(2) "id" protected _primary_key_value => NULL protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQLi(6)
public request => object Request(19){ protected _connection_id => string(40) "f55133d33a45334f5f4529e91abf6b5a796428af" protected _identifier => string(1) "`" public last_query => string(912) "SELECT `section`.`id` AS `id`, `section`.`parent_id` AS `parent_id`, `section`.`module_id` AS `module_id`, `section`.`lang` AS ` …" protected _instance => string(7) "default" protected _connection => object mysqli(19)
protected _db_group => NULL protected _db_applied => array(0) protected _db_pending => array(0) protected _db_reset => bool TRUE protected _db_builder => NULL protected _with_applied => array(0) protected _cast_data => array(0) protected _errors_filename => string(7) "section" }{ public affected_rows => NULL public client_info => NULL public client_version => NULL public connect_errno => NULL public connect_error => NULL public errno => NULL public error => NULL public error_list => NULL public field_count => NULL public host_info => NULL public info => NULL public insert_id => NULL public server_info => NULL public server_version => NULL public stat => NULL public sqlstate => NULL public protocol_version => NULL public thread_id => NULL public warning_count => NULL }
protected _config => array(5) ( "type" => string(6) "MySQLi" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(2) "bl" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE ) }{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => string(56) "http://bl.lv/lv/actions/search?brand=Gerhard%2520Herbers" protected _route => object Route(5)
public response => object Response(5){ protected _filters => array(0) protected _uri => string(32) "<lang>/actions(/<action>(/<id>))" protected _regex => array(1) ( "lang" => string(8) "lv|de|ru" ) protected _defaults => array(2) ( "controller" => string(7) "actions" "action" => string(5) "index" ) protected _route_regex => string(88) "#^(?P<lang>lv|de|ru)/actions(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(7) "Actions" protected _action => string(6) "search" protected _uri => string(17) "lv/actions/search" protected _external => bool FALSE protected _params => array(1) ( "lang" => string(2) "lv" ) protected _get => array(1) ( "brand" => string(17) "Gerhard%20Herbers" ) 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)
public settings => array(2) ( "contact_email" => string(45) "inita@bl.lv, info@bl.lv, maksims@digibrand.lv" "ga_code" => string(415) "<script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i …" ) }{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }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.1" protected _secure => bool TRUE protected _referrer => string(56) "http://bl.lv/lv/actions/search?brand=Gerhard%2520Herbers" protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(32) "<lang>/actions(/<action>(/<id>))" protected _regex => array(1) ( "lang" => string(8) "lv|de|ru" ) protected _defaults => array(2) ( "controller" => string(7) "actions" "action" => string(5) "index" ) protected _route_regex => string(88) "#^(?P<lang>lv|de|ru)/actions(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(7) "Actions" protected _action => string(6) "search" protected _uri => string(17) "lv/actions/search" protected _external => bool FALSE protected _params => array(1) ( "lang" => string(2) "lv" ) protected _get => array(1) ( "brand" => string(17) "Gerhard%20Herbers" ) 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 => string(8) "HTTP/1.1" }109 $orig_response = $response = Response::factory(array('_protocol' => $request->protocol())); 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/Kohana/Request.php [ 986 ] » Kohana_Request_Client->execute(arguments)
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(56) "http://bl.lv/lv/actions/search?brand=Gerhard%2520Herbers" protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(32) "<lang>/actions(/<action>(/<id>))" protected _regex => array(1) ( "lang" => string(8) "lv|de|ru" ) protected _defaults => array(2) ( "controller" => string(7) "actions" "action" => string(5) "index" ) protected _route_regex => string(88) "#^(?P<lang>lv|de|ru)/actions(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(7) "Actions" protected _action => string(6) "search" protected _uri => string(17) "lv/actions/search" protected _external => bool FALSE protected _params => array(1) ( "lang" => string(2) "lv" ) protected _get => array(1) ( "brand" => string(17) "Gerhard%20Herbers" ) 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) }
}981 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 982 ':uri' => $this->_uri, 983 )); 984 } 985 986 return $this->_client->execute($this); 987 } 988 989 /** 990 * Returns whether this request is the initial request Kohana received. 991 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 135 ] » Kohana_Request->execute()
130 /** 131 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 132 * If no source is specified, the URI will be automatically detected. 133 */ 134 echo Request::factory(TRUE, array(), FALSE) 135 ->execute() 136 ->send_headers(TRUE) 137 ->body(); 138 }