SYSPATH/classes/Kohana/View.php [ 344 ]
339 $this->set_filename($file);
340 }
341
342 if (empty($this->_file))
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 }
-
SYSPATH/classes/Kohana/View.php [ 228 ] » Kohana_View->render()
223 */ 224 public function __toString() 225 { 226 try 227 { 228 return $this->render(); 229 } 230 catch (Exception $e) 231 { 232 /** 233 * Display the exception message.
-
APPPATH/views/ads.php [ 19 ] » Kohana_View->__toString()
14 } 15 </style> 16 <?php if(isset($head)){echo $head;} ?> 17 </head> 18 <body> 19 <?php if(isset($content)){echo $content;} ?> 20 </body> 21 </html>
-
SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)
0
string(50) "/var/hosting/www/aded.is/application/views/ads.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(50) "/var/hosting/www/aded.is/application/views/ads.php"
1
array(5) ( "title" => string(0) "" "content" => object View(2)
{ protected _file => NULL protected _data => array(0) }
"styles" => array(0) "scripts" => array(0) "user" => NULL )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 }
-
SYSPATH/classes/Kohana/Controller/Template.php [ 44 ] » Kohana_View->render()
39 */ 40 public function after() 41 { 42 if ($this->auto_render === TRUE) 43 { 44 $this->response->body($this->template->render()); 45 } 46 47 parent::after(); 48 } 49
-
APPPATH/classes/Controller/Base.php [ 179 ] » Kohana_Controller_Template->after()
174 'http://code.jquery.com/jquery.min.js', 175 ); 176 $this->template->styles = array_merge( $this->template->styles, $styles ); 177 $this->template->scripts = array_merge( $this->template->scripts, $scripts );*/ 178 } 179 parent::after(); 180 } 181 182 protected function base64url_encode($data) { 183 return rtrim(strtr(base64_encode($data), '+/', '-_'), '='); 184 }
-
SYSPATH/classes/Kohana/Controller.php [ 87 ] » Controller_Base->after()
82 83 // Execute the action itself 84 $this->{$action}(); 85 86 // Execute the "after action" method 87 $this->after(); 88 89 // Return the response 90 return $this->response; 91 } 92
-
{PHP internal call} » Kohana_Controller->execute()
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Ads(22)
{ public template => object View(2)
{ protected _file => string(50) "/var/hosting/www/aded.is/application/views/ads.php" protected _data => array(5) ( "title" => string(0) "" "content" => object View(2)
public css_pattern => string(80) "#<link(?:[^>]*)href\s?=\s?(?:'|\")((?:[^\/])[^'\"\:]+)(?:'|\")(?:[^>]*)\/?>#Usmi" public js_pattern => string(93) "#<script(?:[^>]*)src\s?=\s?(?:'|\")((?:[^\/])[^'\"\:]+)(?:'|\")(?:[^>]*)\/?>.*<\/script>#Usmi" protected session => object Session_Database(11){ protected _file => NULL protected _data => array(0) }
"styles" => array(0) "scripts" => array(0) "user" => NULL ) }{ protected _db => object Database_MySQL(6)
public back_path => NULL public memcache => object Cache_Memcache(4){ protected _connection_id => string(40) "028194e72ca014f04ad1a4813940cd535fa51d9f" protected _identifier => string(1) "`" public last_query => string(90) "SELECT `session_id` FROM `sessions` WHERE `session_id` = '6631d0a2636601-17601205' LIMIT 1" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(5) ( "type" => string(5) "MySQL" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(13) "api_banner_db" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE ) }
protected _table => string(8) "sessions" protected _columns => array(3) ( "session_id" => string(10) "session_id" "last_active" => string(11) "last_active" "contents" => string(8) "contents" ) protected _gc => integer 500 protected _session_id => string(23) "6631d0a2636601-17601205" protected _update_id => NULL protected _name => string(7) "session" protected _lifetime => integer 43200 protected _encrypted => string(7) "default" protected _data => array(0) protected _destroyed => bool FALSE }{ protected _memcache => object Memcache(2)
public per_page => integer 15 public page => integer 1 public offset => integer 0 public memcache_interval => integer 3600 public query_interval => integer 86400 public max_file_size => string(4) "100M" public file_types => array(7) ( 0 => string(3) "jpg" 1 => string(4) "jpeg" 2 => string(5) "pjpeg" 3 => string(3) "png" 4 => string(3) "gif" 5 => string(3) "swf" 6 => string(3) "mp4" ) public allowed_image_file_types => array(5) ( 0 => string(3) "jpg" 1 => string(4) "jpeg" 2 => string(5) "pjpeg" 3 => string(3) "png" 4 => string(3) "gif" ) public allowed_flash_file_types => array(1) ( 0 => string(3) "swf" ) public allowed_video_file_types => array(1) ( 0 => string(3) "mp4" ) public convert_to_video_types => array(4) ( 0 => string(3) "mov" 1 => string(4) "webm" 2 => string(3) "ogv" 3 => string(3) "mp4" ) public convert_to_video_content_types => array(4) ( "mp4" => string(9) "video/mp4" "mov" => string(15) "video/quicktime" "webm" => string(10) "video/webm" "ogv" => string(9) "video/ogg" ) public allowed_audio_file_types => array(8) ( 0 => string(3) "aac" 1 => string(3) "mp4" 2 => string(3) "aac" 3 => string(4) "mpeg" 4 => string(3) "mp4" 5 => string(3) "ogg" 6 => string(3) "wav" 7 => string(4) "webm" ) public auto_render => bool TRUE public request => object Request(19){ public connection => resource(memcache connection) public _failureCallback => array(2) ( 0 => object Cache_Memcache(4) { *RECURSION* } 1 => string(15) "_failed_request" ) }
protected _flags => bool FALSE protected _default_config => array(9) ( "host" => string(9) "localhost" "port" => integer 11211 "persistent" => bool FALSE "weight" => integer 1 "timeout" => integer 1 "retry_interval" => integer 15 "status" => bool TRUE "instant_death" => bool TRUE "failure_callback" => array(2) ( 0 => object Cache_Memcache(4) { *RECURSION* } 1 => string(15) "_failed_request" ) ) protected _config => array(3) ( "driver" => string(8) "memcache" "servers" => array(1) ( 0 => array(8) ( "host" => string(9) "localhost" "port" => integer 11211 "persistent" => bool FALSE "weight" => integer 1 "timeout" => integer 1 "retry_interval" => integer 15 "status" => bool TRUE "instant_death" => bool TRUE ) ) "compression" => bool FALSE ) }{ 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(13) "media/<media>" protected _regex => array(1) ( "media" => string(2) ".+" ) protected _defaults => array(2) ( "controller" => string(3) "ads" "action" => string(5) "media" ) protected _route_regex => string(25) "#^media/(?P<media>.+)$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(3) "Ads" protected _action => string(5) "media" protected _uri => string(71) "media/pictures/1520602935/original/a4f062d88677a2cd251058c5d399063a.jpg" protected _external => bool FALSE protected _params => array(1) ( "media" => string(65) "pictures/1520602935/original/a4f062d88677a2cd251058c5d399063a.jpg" ) 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 => 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(13) "media/<media>" protected _regex => array(1) ( "media" => string(2) ".+" ) protected _defaults => array(2) ( "controller" => string(3) "ads" "action" => string(5) "media" ) protected _route_regex => string(25) "#^media/(?P<media>.+)$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(3) "Ads" protected _action => string(5) "media" protected _uri => string(71) "media/pictures/1520602935/original/a4f062d88677a2cd251058c5d399063a.jpg" protected _external => bool FALSE protected _params => array(1) ( "media" => string(65) "pictures/1520602935/original/a4f062d88677a2cd251058c5d399063a.jpg" ) 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(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(13) "media/<media>" protected _regex => array(1) ( "media" => string(2) ".+" ) protected _defaults => array(2) ( "controller" => string(3) "ads" "action" => string(5) "media" ) protected _route_regex => string(25) "#^media/(?P<media>.+)$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(3) "Ads" protected _action => string(5) "media" protected _uri => string(71) "media/pictures/1520602935/original/a4f062d88677a2cd251058c5d399063a.jpg" protected _external => bool FALSE protected _params => array(1) ( "media" => string(65) "pictures/1520602935/original/a4f062d88677a2cd251058c5d399063a.jpg" ) 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 [ 120 ] » Kohana_Request->execute()
115 /** 116 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 117 * If no source is specified, the URI will be automatically detected. 118 */ 119 echo Request::factory(TRUE, array(), FALSE) 120 ->execute() 121 ->send_headers(TRUE) 122 ->body(); 123 }