MODPATH/userguide/views/userguide/examples/error.php [ 4 ]
1 <?php
2
3 // Should trigger an ErrorException with an E_NOTICE level
4 echo $var_does_not_exist;
5
6 ?> -
MODPATH/userguide/views/userguide/examples/error.php [ 4 ] » Kohana_Core::error_handler(arguments)
0integer 8
1string(38) "Undefined variable: var_does_not_exist"2string(72) "/var/www/guides/3.3/modules/userguide/views/userguide/examples/error.php"3integer 4
4array(2) ( "kohana_view_filename" => string(72) "/var/www/guides/3.3/modules/userguide/views/userguide/examples/error.php" "kohana_view_data" => array(0) )
1 <?php 2 3 // Should trigger an ErrorException with an E_NOTICE level 4 echo $var_does_not_exist; 5 6 ?> -
SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)
0string(72) "/var/www/guides/3.3/modules/userguide/views/userguide/examples/error.php"56 ob_start(); 57 58 try 59 { 60 // Load the view within the current scope 61 include $kohana_view_filename; 62 } 63 catch (Exception $e) 64 { 65 // Delete the output buffer 66 ob_end_clean(); -
SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture(arguments)
0string(72) "/var/www/guides/3.3/modules/userguide/views/userguide/examples/error.php"1array(0)343 { 344 throw new View_Exception('You must set the file to use within your view before rendering'); 345 } 346 347 // Combine local and global data and capture the output 348 return View::capture($this->_file, $this->_data); 349 } 350 351 } // End View -
MODPATH/userguide/classes/Kohana/Kodoc/Markdown.php [ 179 ] » Kohana_View->render()
174 175 if (Kohana::find_file('views', $view)) 176 { 177 try 178 { 179 $replace[$search] = View::factory($view)->render(); 180 } 181 catch (Exception $e) 182 { 183 /** 184 * Capture the exception handler output and insert it instead. -
MODPATH/userguide/vendor/markdown/markdown.php [ 330 ] » Kohana_Kodoc_Markdown->doIncludeViews(arguments)
0string(2968) "<h1 id="errorexception-handling">Error/Exception Handling</h1> <p>Kohana provides both an exception handler and an error handle …"325 # contorted like /[ ]*\n+/ . 326 $text = preg_replace('/^[ ]+$/m', '', $text); 327 328 # Run document gamut methods. 329 foreach ($this->document_gamut as $method => $priority) { 330 $text = $this->$method($text); 331 } 332 333 $this->teardown(); 334 335 return $text . "\n"; -
MODPATH/userguide/classes/Kohana/Kodoc/Markdown.php [ 58 ] » Markdown_Parser->transform(arguments)
0string(2463) "# Error/Exception Handling Kohana provides both an exception handler and an error handler that transforms errors into exception …"53 if ($instance === NULL) 54 { 55 $instance = new Kodoc_Markdown; 56 } 57 58 return $instance->transform($text); 59 } 60 61 public function __construct() 62 { 63 // doImage is 10, add image url just before -
MODPATH/userguide/classes/Kohana/Controller/Userguide.php [ 148 ] » Kohana_Kodoc_Markdown::markdown(arguments)
textstring(2463) "# Error/Exception Handling Kohana provides both an exception handler and an error handler that transforms errors into exception …"143 // Set the page title 144 $this->template->title = $page == 'index' ? Kohana::$config->load('userguide.modules.'.$module.'.name') : $this->title($page); 145 146 // Parse the page contents into the template 147 Kodoc_Markdown::$show_toc = true; 148 $this->template->content = Kodoc_Markdown::markdown(file_get_contents($file)); 149 Kodoc_Markdown::$show_toc = false; 150 151 // Attach this module's menu to the template 152 $this->template->menu = Kodoc_Markdown::markdown($this->_get_all_menu_markdown()); 153 -
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Kohana_Controller_Userguide->action_docs()
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)
0object Controller_Userguide(7)
{ public template => object View(2){ protected _file => string(66) "/var/www/guides/3.3/modules/userguide/views/userguide/template.php" protected _data => array(2) ( "show_comments" => bool FALSE "title" => string(14) "Error Handling" ) }protected media => object Route(5){ protected _filters => array(0) protected _uri => string(20) "guide-media(/<file>)" protected _regex => array(1) ( "file" => string(2) ".+" ) protected _defaults => array(3) ( "controller" => string(9) "Userguide" "action" => string(5) "media" "file" => NULL ) protected _route_regex => string(35) "#^guide-media(?:/(?P<file>.+))?$#uD" }protected api => NULL protected guide => object Route(5){ protected _filters => array(0) protected _uri => string(25) "guide(/<module>(/<page>))" protected _regex => array(1) ( "page" => string(2) ".+" ) protected _defaults => array(3) ( "controller" => string(9) "Userguide" "action" => string(4) "docs" "module" => string(0) "" ) protected _route_regex => string(59) "#^guide(?:/(?P<module>[^/.,;?\n]++)(?:/(?P<page>.+))?)?$#uD" }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.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)public response => object Response(5){ protected _filters => array(0) protected _uri => string(25) "guide(/<module>(/<page>))" protected _regex => array(1) ( "page" => string(2) ".+" ) protected _defaults => array(3) ( "controller" => string(9) "Userguide" "action" => string(4) "docs" "module" => string(0) "" ) protected _route_regex => string(59) "#^guide(?:/(?P<module>[^/.,;?\n]++)(?:/(?P<page>.+))?)?$#uD" }protected _routes => array(0) protected _header => object HTTP_Header(0){ }protected _body => NULL protected _directory => string(0) "" protected _controller => string(9) "Userguide" protected _action => string(4) "docs" protected _uri => string(19) "guide/kohana/errors" protected _external => bool FALSE protected _params => array(2) ( "module" => string(6) "kohana" "page" => string(6) "errors" ) protected _get => array(0) 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)}{ }protected _body => string(0) "" protected _cookies => array(0) protected _protocol => NULL }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)
0object Request(19)
{ 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 _filters => array(0) protected _uri => string(25) "guide(/<module>(/<page>))" protected _regex => array(1) ( "page" => string(2) ".+" ) protected _defaults => array(3) ( "controller" => string(9) "Userguide" "action" => string(4) "docs" "module" => string(0) "" ) protected _route_regex => string(59) "#^guide(?:/(?P<module>[^/.,;?\n]++)(?:/(?P<page>.+))?)?$#uD" }protected _routes => array(0) protected _header => object HTTP_Header(0){ }protected _body => NULL protected _directory => string(0) "" protected _controller => string(9) "Userguide" protected _action => string(4) "docs" protected _uri => string(19) "guide/kohana/errors" protected _external => bool FALSE protected _params => array(2) ( "module" => string(6) "kohana" "page" => string(6) "errors" ) protected _get => array(0) 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) }}1object Response(5)
{ protected _status => integer 200 protected _header => object HTTP_Header(0){ }protected _body => string(0) "" protected _cookies => array(0) protected _protocol => NULL }109 $orig_response = $response = Response::factory(); 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 [ 990 ] » Kohana_Request_Client->execute(arguments)
0object Request(19)
{ 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 _filters => array(0) protected _uri => string(25) "guide(/<module>(/<page>))" protected _regex => array(1) ( "page" => string(2) ".+" ) protected _defaults => array(3) ( "controller" => string(9) "Userguide" "action" => string(4) "docs" "module" => string(0) "" ) protected _route_regex => string(59) "#^guide(?:/(?P<module>[^/.,;?\n]++)(?:/(?P<page>.+))?)?$#uD" }protected _routes => array(0) protected _header => object HTTP_Header(0){ }protected _body => NULL protected _directory => string(0) "" protected _controller => string(9) "Userguide" protected _action => string(4) "docs" protected _uri => string(19) "guide/kohana/errors" protected _external => bool FALSE protected _params => array(2) ( "module" => string(6) "kohana" "page" => string(6) "errors" ) protected _get => array(0) 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) }}985 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 986 ':uri' => $this->_uri, 987 )); 988 } 989 990 return $this->_client->execute($this); 991 } 992 993 /** 994 * Returns whether this request is the initial request Kohana received. 995 * Can be used to test for sub requests. -
DOCROOT/3.3-index.php [ 103 ] » Kohana_Request->execute()
98 /** 99 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 100 * If no source is specified, the URI will be automatically detected. 101 */ 102 echo Request::factory(TRUE, array(), FALSE) 103 ->execute() 104 ->send_headers(TRUE) 105 ->body();