SYSPATH/classes/kohana/view.php [ 252 ]
247 */
248 public function set_filename($file)
249 {
250 if (($path = Kohana::find_file('views', $file)) === FALSE)
251 {
252 throw new View_Exception('The requested view :file could not be found', array(
253 ':file' => $file,
254 ));
255 }
256
257 // Store the file path locally
-
SYSPATH/classes/kohana/view.php [ 137 ] » Kohana_View->set_filename(arguments)
0
string(11) "/templates/"
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(11) "/templates/"
1
NULL
25 * @param array 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/home.php [ 28 ] » Kohana_View::factory(arguments)
0
string(11) "/templates/"
23 } 24 25 public function action_page(){ 26 $this->template->active = 'home'; 27 $page = ORM::Factory('page', array('uri' => Utils::uri_get())); 28 $view = View::Factory('/templates/'.$page->template->file); 29 $this->template->bind('page',$page)->bind('request',$this->request); 30 $this->template->mainContent = $view; 31 $this->template->news = array(); 32 } 33 }
-
{PHP internal call} » Controller_Home->action_page()
-
SYSPATH/classes/kohana/request/client/internal.php [ 118 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Home(7)
{ public template => object View(2)
{ protected _file => string(27) "/application/views/home.php" protected _data => array(6) ( "adminContent" => string(0) "" "pagination" => string(0) "" "submenu" => array(0) "module_menu" => array(3) ( 0 => array(2) ( "label" => string(12) "Publications" "action" => string(17) "/hako_publication" ) 1 => array(2) ( "label" => string(8) "Services" "action" => string(13) "/hako_service" ) 2 => array(2) ( "label" => string(5) "Teams" "action" => string(10) "/hako_team" ) ) "mainContent" => string(0) "" "active" => string(4) "home" ) }
private domHtml => NULL public firephp => NULL public auto_render => bool TRUE 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(33) "(<lang>(/<name>(/<page>(/<id>))))" protected _regex => array(2) ( "lang" => string(23) "[a-zA-Z]{2}-[a-zA-Z]{2}" "page" => string(6) "[0-9]+" ) protected _defaults => array(6) ( "controller" => string(4) "home" "action" => string(4) "page" "lang" => string(5) "pl-pl" "name" => string(4) "home" "page" => integer 1 "id" => string(0) "" ) protected _route_regex => string(120) "#^(?:(?P<lang>[a-zA-Z]{2}-[a-zA-Z]{2})(?:/(?P<name>[^/.,;?\n]++)(?:/(?P<page>[0-9]+)(?:/(?P<id>[^/.,;?\n]++))?)?)?)?$#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(0) "" protected _controller => string(4) "home" protected _action => string(4) "page" protected _uri => string(18) "fr-fr/service/1/23" protected _external => bool FALSE protected _params => array(4) ( "lang" => string(5) "fr-fr" "name" => string(7) "service" "page" => string(1) "1" "id" => string(2) "23" ) 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)
public config => object Model_Configuration(35){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ public config => array(5) ( "admin_login" => string(7) "netkata" "admin_password" => string(7) "netkata" "default_language" => string(5) "pl-pl" "domain" => string(13) "mielke.com.pl" "languages" => string(23) "pl-pl,en-uk,de-de,fr-fr" ) protected _has_one => array(0) protected _belongs_to => array(0) protected _has_many => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(3) ( "id" => NULL "name" => NULL "value" => 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 _sorting => NULL protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(13) "configuration" protected _object_plural => string(14) "configurations" protected _table_name => string(14) "configurations" protected _table_columns => array(3) ( "id" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(2) "id" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool FALSE "ordinal_position" => integer 1 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(14) "auto_increment" "key" => string(3) "PRI" "privileges" => string(31) "select,insert,update,references" ) "name" => array(12) ( "type" => string(6) "string" "column_name" => string(4) "name" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 2 "character_maximum_length" => string(2) "60" "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "UNI" "privileges" => string(31) "select,insert,update,references" ) "value" => array(12) ( "type" => string(6) "string" "character_maximum_length" => string(5) "65535" "column_name" => string(5) "value" "column_default" => NULL "data_type" => string(4) "text" "is_nullable" => bool FALSE "ordinal_position" => integer 3 "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) ) protected _updated_column => NULL protected _created_column => NULL 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_MySQL(6)
}{ protected _connection_id => string(40) "9c5895188662e6cd65af61d7403a6c928565e89e" protected _identifier => string(1) "`" public last_query => string(88) "SELECT `template`.* FROM `templates` AS `template` WHERE `template`.`id` IS NULL LIMIT 1" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(6) ( "type" => string(5) "mysql" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(7) "mielke1" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE "profiling" => bool TRUE ) }
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(13) "configuration" }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(33) "(<lang>(/<name>(/<page>(/<id>))))" protected _regex => array(2) ( "lang" => string(23) "[a-zA-Z]{2}-[a-zA-Z]{2}" "page" => string(6) "[0-9]+" ) protected _defaults => array(6) ( "controller" => string(4) "home" "action" => string(4) "page" "lang" => string(5) "pl-pl" "name" => string(4) "home" "page" => integer 1 "id" => string(0) "" ) protected _route_regex => string(120) "#^(?:(?P<lang>[a-zA-Z]{2}-[a-zA-Z]{2})(?:/(?P<name>[^/.,;?\n]++)(?:/(?P<page>[0-9]+)(?:/(?P<id>[^/.,;?\n]++))?)?)?)?$#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(0) "" protected _controller => string(4) "home" protected _action => string(4) "page" protected _uri => string(18) "fr-fr/service/1/23" protected _external => bool FALSE protected _params => array(4) ( "lang" => string(5) "fr-fr" "name" => string(7) "service" "page" => string(1) "1" "id" => string(2) "23" ) 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.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(33) "(<lang>(/<name>(/<page>(/<id>))))" protected _regex => array(2) ( "lang" => string(23) "[a-zA-Z]{2}-[a-zA-Z]{2}" "page" => string(6) "[0-9]+" ) protected _defaults => array(6) ( "controller" => string(4) "home" "action" => string(4) "page" "lang" => string(5) "pl-pl" "name" => string(4) "home" "page" => integer 1 "id" => string(0) "" ) protected _route_regex => string(120) "#^(?:(?P<lang>[a-zA-Z]{2}-[a-zA-Z]{2})(?:/(?P<name>[^/.,;?\n]++)(?:/(?P<page>[0-9]+)(?:/(?P<id>[^/.,;?\n]++))?)?)?)?$#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(0) "" protected _controller => string(4) "home" protected _action => string(4) "page" protected _uri => string(18) "fr-fr/service/1/23" protected _external => bool FALSE protected _params => array(4) ( "lang" => string(5) "fr-fr" "name" => string(7) "service" "page" => string(1) "1" "id" => string(2) "23" ) 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.
-
/index.php [ 109 ] » Kohana_Request->execute()
104 /** 105 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 106 * If no source is specified, the URI will be automatically detected. 107 */ 108 echo Request::factory() 109 ->execute() 110 ->send_headers() 111 ->body();