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(5) "error"
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(5) "error"
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
-
SYSPATH/classes/kohana/controller/template.php [ 33 ] » Kohana_View::factory(arguments)
0
string(5) "error"
28 parent::before(); 29 30 if ($this->auto_render === TRUE) 31 { 32 // Load the template 33 $this->template = View::factory($this->template); 34 } 35 } 36 37 /** 38 * Assigns the template [View] as the request response.
-
APPPATH/classes/controller/error.php [ 12 ] » Kohana_Controller_Template->before()
7 public $template = 'error'; 8 public $gravar_logs = TRUE; 9 public $empresa = "Site Padrão"; 10 11 public function before() { 12 parent::before(); 13 $this->_name = $this->request->controller(); 14 $this->template->titulo = $this->empresa." - ERROR 404"; 15 16 if ($this->request->is_ajax()) { 17 $this->auto_render = FALSE;
-
{PHP internal call} » Controller_Error->before()
-
SYSPATH/classes/kohana/request/client/internal.php [ 104 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Error(6)
{ public template => string(5) "error" public gravar_logs => bool TRUE public empresa => string(12) "Site Padrão" public auto_render => bool TRUE public request => object Request(20)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => string(94) "http://www.salton.med.br/cursos/verCurso/5/QUEM%2520%25C3%2589%2520ESTE%2520A%2520SEU%2520LADO" protected _route => object Route(5)
public response => object Response(5){ protected _callback => NULL 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" }
protected _routes => array(0) 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(5) "error" protected _action => string(5) "index" protected _uri => string(5) "error" protected _external => bool FALSE protected _params => array(0) 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 }
}{ 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" }99 } 100 101 // Create a new instance of the controller 102 $controller = $class->newInstance($request, $request->response() ? $request->response() : $request->create_response()); 103 104 $class->getMethod('before')->invoke($controller); 105 106 // Determine the action to use 107 $action = $request->action(); 108 109 // If the action doesn't exist, it's a 404
-
SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)
0
object Request(20)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => string(94) "http://www.salton.med.br/cursos/verCurso/5/QUEM%2520%25C3%2589%2520ESTE%2520A%2520SEU%2520LADO" protected _route => object Route(5)
{ protected _callback => NULL 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" }
protected _routes => array(0) 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(5) "error" protected _action => string(5) "index" protected _uri => string(5) "error" protected _external => bool FALSE protected _params => array(0) 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 }
}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 [ 1154 ] » Kohana_Request_Client->execute(arguments)
0
object Request(20)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => string(94) "http://www.salton.med.br/cursos/verCurso/5/QUEM%2520%25C3%2589%2520ESTE%2520A%2520SEU%2520LADO" protected _route => object Route(5)
{ protected _callback => NULL 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" }
protected _routes => array(0) 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(5) "error" protected _action => string(5) "index" protected _uri => string(5) "error" protected _external => bool FALSE protected _params => array(0) 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 }
}1149 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 1150 ':uri' => $this->_uri, 1151 )); 1152 } 1153 1154 return $this->_client->execute($this); 1155 } 1156 1157 /** 1158 * Returns whether this request is the initial request Kohana received. 1159 * Can be used to test for sub requests.
-
DOCROOT/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(TRUE) 111 ->body();