APPPATH/classes/Helper/Html.php [ 61 ]
56 $response = $request->execute();
57 $response_status = $response->status();
58
59 if ($response_status != 200)
60 {
61 throw HTTP_Exception::factory($response_status, $element_url.' Failed');
62 }
63 return $response->body();
64 }
65
66 public static function inline_css($css_string)
-
APPPATH/views/template/html-with-header.php [ 12 ] » Helper_Html::element(arguments)
0
string(9) "en/footer"
7 ?> 8 <div id="container"> 9 <?php echo isset($content) ? $content : ''; ?> 10 </div> 11 <?php 12 echo Helper_Html::element(URL::footer(Request::$initial->param('lang') ? Request::$initial->param('lang') : Constants_Country::EN));; 13 ?> 14 <?php 15 $content = ob_get_clean(); 16 17 include (Kohana::find_file('views', 'template/html'));
-
SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)
0
string(75) "/home3/voicetal/public_html/application/views/template/html-with-header.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)
0
string(75) "/home3/voicetal/public_html/application/views/template/html-with-header.php"
1
array(2) ( "content" => string(6989) " <section id="home-banner"> <div class="page-width text-center"> <h2>We have the best voice</h2> <div> …" "template" => object Template_HtmlWithHeader(6)
{ protected _template_file => string(16) "html-with-header" protected _content_type_extension => string(4) "html" private _page_metadata => object Data_PageMetadata(10)
){ public title => string(72) "Voicetalent.cn - we provide the best voice over service - Voicetalent.cn" public keywords => string(64) "voice over, voice talent, voice actor, localization, translation" public description => string(88) "We are the Asian voice over experts, you will find one voice that delivery your message." public robots => NULL public css_files => array(0) public js_files => array(0) public custom_head => array(0) public custom_bottom => array(0) public inline_js => array(0) protected _has_one => array(0) }
private _template_data => array(0) protected _file => string(75) "/home3/voicetal/public_html/application/views/template/html-with-header.php" protected _data => array(2) ( "content" => string(6989) " <section id="home-banner"> <div class="page-width text-center"> <h2>We have the best voice</h2> <div> …" "template" => object Template_HtmlWithHeader(6) { *RECURSION* } ) }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 }
-
APPPATH/classes/Template/Base.php [ 87 ] » Kohana_View->render(arguments)
0
NULL
82 83 public function render($file = NULL) 84 { 85 $this->set('template', $this); 86 87 return parent::render($file); 88 } 89 90 public function set_content($content) 91 { 92 $this->set('content', $content);
-
APPPATH/classes/Controller/Template.php [ 72 ] » Template_Base->render()
67 $this->response->headers('Expires', '0'); 68 } 69 70 private function _set_response_body() 71 { 72 $this->response->body($this->_template->render()); 73 } 74 }
-
APPPATH/classes/Controller/Template.php [ 26 ] » Controller_Template->_set_response_body()
21 { 22 if ($this->_send_response_headers) 23 { 24 $this->_set_response_headers(); 25 } 26 $this->_set_response_body(); 27 } 28 29 protected function _get_template_class() 30 { 31 return $this->_template_class;
-
APPPATH/classes/Controller.php [ 31 ] » Controller_Template->after()
26 27 // Execute the action itself 28 $this->{$action}(); 29 30 // Execute the "after action" method 31 $this->after(); 32 33 // Return the response 34 return $this->response; 35 } 36 }
-
{PHP internal call} » Controller->execute()
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Home(16)
{ protected _service_blog => object Service_Blog(1)
{ protected _dao_api_blog => object Dao_Api_Blog(0)
protected _template_class => string(14) "HtmlWithHeader" protected _service_login => object Service_Login(2){ }
}{ protected _dao_api_login => object Dao_Api_Login(0)
protected _service_auth => object Service_Auth(1){ }
protected _service_auth => object Service_Auth(1){ private _service_login => object Service_Login(2) { *RECURSION* } }
}{ private _service_login => object Service_Login(2)
protected _service_weixin => object Service_Weixin(2){ protected _dao_api_login => object Dao_Api_Login(0)
}{ }
protected _service_auth => object Service_Auth(1) { *RECURSION* } }{ protected _service_users => object Service_Users(2)
protected _service_country => object Service_Country(0){ protected _dao_api_users => object Dao_Api_Users(0)
protected _service_login => object Service_Login(2){ }
private _locker => NULL }{ protected _dao_api_login => object Dao_Api_Login(0)
}{ }
protected _service_auth => object Service_Auth(1){ private _service_login => object Service_Login(2) { *RECURSION* } }
}{ }
protected _service_users => object Service_Users(2){ protected _dao_api_users => object Dao_Api_Users(0)
protected _country => string(2) "en" protected _login_user => NULL protected _validate_key => string(10) "P9HusdQKwW" protected _validate_id => integer 1000 protected _send_response_headers => bool TRUE protected _template_error => NULL protected _template => object Template_HtmlWithHeader(6){ }
private _locker => NULL }{ protected _template_file => string(16) "html-with-header" protected _content_type_extension => string(4) "html" private _page_metadata => object Data_PageMetadata(10)
public request => object Request(19){ public title => string(72) "Voicetalent.cn - we provide the best voice over service - Voicetalent.cn" public keywords => string(64) "voice over, voice talent, voice actor, localization, translation" public description => string(88) "We are the Asian voice over experts, you will find one voice that delivery your message." public robots => NULL public css_files => array(0) public js_files => array(0) public custom_head => array(0) public custom_bottom => array(0) public inline_js => array(0) protected _has_one => array(0) }
private _template_data => array(0) protected _file => string(75) "/home3/voicetal/public_html/application/views/template/html-with-header.php" protected _data => array(2) ( "content" => string(6989) " <section id="home-banner"> <div class="page-width text-center"> <h2>We have the best voice</h2> <div> …" "template" => object Template_HtmlWithHeader(6) { *RECURSION* } ) }{ 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(41) "(<lang>/)(<controller>(/<action>(/<id>)))" protected _regex => array(1) ( "lang" => string(7) "(cn|en)" ) protected _defaults => array(2) ( "controller" => string(4) "home" "action" => string(5) "index" ) protected _route_regex => string(118) "#^(?:(?P<lang>(cn|en))/)?(?:(?P<controller>[^/.,;?\n]++)(?:/(?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(4) "Home" protected _action => string(5) "index" protected _uri => string(0) "" 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(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(4)
}{ public content-type => string(24) "text/html; charset=utf-8" public cache-control => string(35) "no-cache, no-store, must-revalidate" public pragma => string(8) "no-cache" public expires => string(1) "0" }
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 FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(41) "(<lang>/)(<controller>(/<action>(/<id>)))" protected _regex => array(1) ( "lang" => string(7) "(cn|en)" ) protected _defaults => array(2) ( "controller" => string(4) "home" "action" => string(5) "index" ) protected _route_regex => string(118) "#^(?:(?P<lang>(cn|en))/)?(?:(?P<controller>[^/.,;?\n]++)(?:/(?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(4) "Home" protected _action => string(5) "index" protected _uri => string(0) "" 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(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(4)
{ public content-type => string(24) "text/html; charset=utf-8" public cache-control => string(35) "no-cache, no-store, must-revalidate" public pragma => string(8) "no-cache" public expires => string(1) "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 FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(41) "(<lang>/)(<controller>(/<action>(/<id>)))" protected _regex => array(1) ( "lang" => string(7) "(cn|en)" ) protected _defaults => array(2) ( "controller" => string(4) "home" "action" => string(5) "index" ) protected _route_regex => string(118) "#^(?:(?P<lang>(cn|en))/)?(?:(?P<controller>[^/.,;?\n]++)(?:/(?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(4) "Home" protected _action => string(5) "index" protected _uri => string(0) "" 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(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 [ 122 ] » Kohana_Request->execute()
117 * If no source is specified, the URI will be automatically detected. 118 */ 119 120 try{ 121 echo Request::factory(TRUE, array(), FALSE) 122 ->execute() 123 ->send_headers(TRUE) 124 ->body(); 125 } 126 catch (Error $e) // php7 Throwable 127 {