APPPATH/views/new/single.php [ 7 ]
2 $curr_link = $base.'/new';
3 ?>
4 <div class="body container">
5 <?php require_once APPPATH . "views/_sidebar.php"; ?>
6 <div id="content" class="books">
7 <?php if(!empty($featured) && count($featured)>0){?>
8 <div id="content-head">
9 <h1 class="title"><span></span><?=$featured->title?></h1>
10 </div>
11 <div id="content-body">
12 <?php if (isset($featured->author) && !empty($featured->author)) {
-
APPPATH/views/new/single.php [ 7 ] » Kohana_Core::error_handler(arguments)
0
integer 2
1
string(74) "count(): Parameter must be an array or an object that implements Countable"
2
string(60) "/home/.sites/132/site12/web/application/views/new/single.php"
3
integer 7
4
array(15) ( "kohana_view_filename" => string(59) "/home/.sites/132/site12/web/application/views/_template.php" "kohana_view_data" => array(4) ( "top_modules" => NULL "display" => object stdClass(11)
{ public sidebar => bool TRUE public sideCategoriesUpleveled => bool FALSE public sideArticles => bool FALSE public sideCategories => bool FALSE public sideModuleLinks => bool TRUE public sideTestimonials => bool FALSE public sideTestimonialLinkOnly => bool FALSE public articleAuthor => bool TRUE public orderByDirection => string(4) "DESC" public orderIncludeCategory => bool FALSE public sideCategoryWiseArticles => bool TRUE }
"side_articles" => NULL "featured" => object stdClass(18){ public id => string(3) "252" public title => string(33) "New Video Course Launched June 29" public content => string(1113) "<p><br>Breaking News from eParachute</p><p>Good News. Dick (Bolles) has just completed his first online video course in 45 years …" public slug => string(35) "new-video-course-launches-june-29-2" public author => string(10) "eParachute" public link => string(0) "" public module => string(2) "12" public active => string(1) "1" public order => string(1) "4" public date => string(19) "2015-06-28 00:00:00" public resource => string(1) "0" public module_name => string(8) "Articles" public module_slug => string(8) "articles" public category_id => string(3) "148" public category_name => string(8) "Featured" public category_slug => string(8) "featured" public category_order => string(1) "4" public category_visible => string(1) "0" }
) "top_modules" => NULL "display" => object stdClass(11){ public sidebar => bool TRUE public sideCategoriesUpleveled => bool FALSE public sideArticles => bool FALSE public sideCategories => bool FALSE public sideModuleLinks => bool TRUE public sideTestimonials => bool FALSE public sideTestimonialLinkOnly => bool FALSE public articleAuthor => bool TRUE public orderByDirection => string(4) "DESC" public orderIncludeCategory => bool FALSE public sideCategoryWiseArticles => bool TRUE }
"side_articles" => NULL "featured" => object stdClass(18){ public id => string(3) "252" public title => string(33) "New Video Course Launched June 29" public content => string(1113) "<p><br>Breaking News from eParachute</p><p>Good News. Dick (Bolles) has just completed his first online video course in 45 years …" public slug => string(35) "new-video-course-launches-june-29-2" public author => string(10) "eParachute" public link => string(0) "" public module => string(2) "12" public active => string(1) "1" public order => string(1) "4" public date => string(19) "2015-06-28 00:00:00" public resource => string(1) "0" public module_name => string(8) "Articles" public module_slug => string(8) "articles" public category_id => string(3) "148" public category_name => string(8) "Featured" public category_slug => string(8) "featured" public category_order => string(1) "4" public category_visible => string(1) "0" }
"current_module" => NULL "testimonial" => NULL "msg" => object stdClass(0){ }
"flash_msg" => NULL "base" => string(0) "" "user" => bool FALSE "template" => string(10) "new/single" "title" => string(33) "New Video Course Launched June 29" "curr_link" => string(4) "/new" )2 $curr_link = $base.'/new'; 3 ?> 4 <div class="body container"> 5 <?php require_once APPPATH . "views/_sidebar.php"; ?> 6 <div id="content" class="books"> 7 <?php if(!empty($featured) && count($featured)>0){?> 8 <div id="content-head"> 9 <h1 class="title"><span></span><?=$featured->title?></h1> 10 </div> 11 <div id="content-body"> 12 <?php if (isset($featured->author) && !empty($featured->author)) {
-
APPPATH/views/_template.php [ 3 ] » require_once(arguments)
0
string(60) "/home/.sites/132/site12/web/application/views/new/single.php"
1 <?php 2 require_once APPPATH . 'views/_header.php'; 3 require_once APPPATH . "views/{$template}.php"; 4 require_once APPPATH . 'views/_footer.php';
-
SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)
0
string(59) "/home/.sites/132/site12/web/application/views/_template.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(59) "/home/.sites/132/site12/web/application/views/_template.php"
1
array(4) ( "top_modules" => NULL "display" => object stdClass(11)
{ public sidebar => bool TRUE public sideCategoriesUpleveled => bool FALSE public sideArticles => bool FALSE public sideCategories => bool FALSE public sideModuleLinks => bool TRUE public sideTestimonials => bool FALSE public sideTestimonialLinkOnly => bool FALSE public articleAuthor => bool TRUE public orderByDirection => string(4) "DESC" public orderIncludeCategory => bool FALSE public sideCategoryWiseArticles => bool TRUE }
"side_articles" => NULL "featured" => object stdClass(18){ public id => string(3) "252" public title => string(33) "New Video Course Launched June 29" public content => string(1113) "<p><br>Breaking News from eParachute</p><p>Good News. Dick (Bolles) has just completed his first online video course in 45 years …" public slug => string(35) "new-video-course-launches-june-29-2" public author => string(10) "eParachute" public link => string(0) "" public module => string(2) "12" public active => string(1) "1" public order => string(1) "4" public date => string(19) "2015-06-28 00:00:00" public resource => string(1) "0" public module_name => string(8) "Articles" public module_slug => string(8) "articles" public category_id => string(3) "148" public category_name => string(8) "Featured" public category_slug => string(8) "featured" public category_order => string(1) "4" public category_visible => string(1) "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 }
-
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/classes/Controller/New.php [ 36 ] » Kohana_View->__toString()
31 32 $this->vars->featured = $this->model_article->get_featured_article_detail($unsafe_slug); 33 34 $this->title = (isset($this->vars->featured)&& !empty($this->vars->featured)) ? $this->vars->featured->title : 'New Article By Dick'; 35 $this->template = "new/single"; 36 echo View::factory('_template', (array) $this->vars); 37 } 38 }
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_New->action_view()
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)
0
object Controller_New(23)
{ public base => string(0) "" public current_category => NULL public current_module => NULL public flash_msg => NULL public msg => object stdClass(0)
{ }
public model_user => object Model_User(1){ public session => object Session_Database(11)
public model_article => object Model_Article(1){ protected _db => object Database_PDO(5)
}{ protected _identifier => string(0) "" public last_query => string(783) "SELECT a.id, a.title, a.content, a.slug, a.author, a.link, a.module, a.active, a.order, a.date, a.resource, …" protected _instance => string(7) "default" protected _connection => object PDO(0)
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) "65106c4c1d2c16-94656838" protected _update_id => NULL protected _name => string(5) "jhbdb" protected _lifetime => integer 604800 protected _encrypted => string(7) "default" protected _data => array(0) protected _destroyed => bool FALSE }{ }
protected _config => array(5) ( "type" => string(3) "pdo" "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool TRUE "profiling" => bool TRUE ) }{ public resource => integer 0 }
public model_book => object Model_Book(1){ public resource => integer 0 }
public model_faq => object Model_FAQ(1){ public resource => integer 0 }
public model_link => object Model_Link(1){ public resource => integer 0 }
public model_module => object Model_Module(0){ }
public model_testimonial => object Model_Testimonial(1){ public resource => integer 0 }
public modules => NULL public session => object Session_Database(11){ protected _db => object Database_PDO(5)
public user => bool FALSE public template => string(10) "new/single" public template_slug => NULL public testimonial => NULL public title => string(33) "New Video Course Launched June 29" public vars => object stdClass(4){ protected _identifier => string(0) "" public last_query => string(783) "SELECT a.id, a.title, a.content, a.slug, a.author, a.link, a.module, a.active, a.order, a.date, a.resource, …" protected _instance => string(7) "default" protected _connection => object PDO(0)
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) "65106c4c1d2c16-94656838" protected _update_id => NULL protected _name => string(5) "jhbdb" protected _lifetime => integer 604800 protected _encrypted => string(7) "default" protected _data => array(0) protected _destroyed => bool FALSE }{ }
protected _config => array(5) ( "type" => string(3) "pdo" "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool TRUE "profiling" => bool TRUE ) }{ public top_modules => NULL public display => object stdClass(11)
public page_size => integer 5 public request => object Request(19){ public sidebar => bool TRUE public sideCategoriesUpleveled => bool FALSE public sideArticles => bool FALSE public sideCategories => bool FALSE public sideModuleLinks => bool TRUE public sideTestimonials => bool FALSE public sideTestimonialLinkOnly => bool FALSE public articleAuthor => bool TRUE public orderByDirection => string(4) "DESC" public orderIncludeCategory => bool FALSE public sideCategoryWiseArticles => bool TRUE }
public side_articles => NULL public featured => object stdClass(18){ public id => string(3) "252" public title => string(33) "New Video Course Launched June 29" public content => string(1113) "<p><br>Breaking News from eParachute</p><p>Good News. Dick (Bolles) has just completed his first online video course in 45 years …" public slug => string(35) "new-video-course-launches-june-29-2" public author => string(10) "eParachute" public link => string(0) "" public module => string(2) "12" public active => string(1) "1" public order => string(1) "4" public date => string(19) "2015-06-28 00:00:00" public resource => string(1) "0" public module_name => string(8) "Articles" public module_slug => string(8) "articles" public category_id => string(3) "148" public category_name => string(8) "Featured" public category_slug => string(8) "featured" public category_order => string(1) "4" public category_visible => string(1) "0" }
}{ 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(32) "(<controller>(/<action>(/<id>)))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(4) "home" "action" => string(5) "index" ) protected _route_regex => string(95) "#^(?:(?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(3) "New" protected _action => string(4) "view" protected _uri => string(44) "new/view/new-video-course-launches-june-29-2" protected _external => bool FALSE protected _params => array(1) ( "id" => string(35) "new-video-course-launches-june-29-2" ) 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(32) "(<controller>(/<action>(/<id>)))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(4) "home" "action" => string(5) "index" ) protected _route_regex => string(95) "#^(?:(?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(3) "New" protected _action => string(4) "view" protected _uri => string(44) "new/view/new-video-course-launches-june-29-2" protected _external => bool FALSE protected _params => array(1) ( "id" => string(35) "new-video-course-launches-june-29-2" ) 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(32) "(<controller>(/<action>(/<id>)))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(4) "home" "action" => string(5) "index" ) protected _route_regex => string(95) "#^(?:(?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(3) "New" protected _action => string(4) "view" protected _uri => string(44) "new/view/new-video-course-launches-june-29-2" protected _external => bool FALSE protected _params => array(1) ( "id" => string(35) "new-video-course-launches-june-29-2" ) 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 [ 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();