MODPATH/gallery/views/view_image_modal.php [ 12 ]
7
8 <div class="center" style="text-align: center; position: relative;">
9
10
11 <? $img = Model_Pict::get_by_id($id); ?>
12 <img src="<?=$img->path?><?=$img->filename?>.<?=$img->ext?>" class="img-rounded img-responsive center-block"/>
13
14
15
16 <? if(!empty($img->title)) $img_title = $img->title;
17 else $img_title = NULL;
-
MODPATH/gallery/views/view_image_modal.php [ 12 ] » Kohana_Core::error_handler(arguments)
0
integer 8
1
string(36) "Trying to get property of non-object"
2
string(107) "/home/host1365301/moto-probeg-volna-pamyati.ru/htdocs/www/kohana/modules/gallery/views/view_image_modal.php"
3
integer 12
4
array(8) ( "kohana_view_filename" => string(107) "/home/host1365301/moto-probeg-volna-pamyati.ru/htdocs/www/kohana/modules/gallery/views/view_image_modal.php" "kohana_view_data" => array(4) ( "id" => NULL "gallery_title" => NULL "neigh" => object stdClass(2)
{ public next => integer 0 public prev => integer 0 }
"gallery_id" => NULL ) "id" => NULL "gallery_title" => NULL "neigh" => object stdClass(2){ public next => integer 0 public prev => integer 0 }
"gallery_id" => NULL "user" => object User(5){ public data => NULL public user_id => string(1) "0" protected model_user => object Model_User(2)
"img" => NULL ){ private user_id => integer 0 public model => object Model_Quser(0)
protected model_acc => NULL protected session => object Session_Database(11){ }
}{ protected _db => object Database_MySQL(6)
}{ protected _connection_id => string(40) "9fd1a36dc7406f6d9eaae7500376c89f36fa49d6" protected _identifier => string(1) "`" public last_query => string(41) "SELECT * FROM `images` WHERE `id` IS NULL" 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(16) "host1365301_mpvp" "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 1 protected _session_id => string(23) "57eb80d19f53e6-38035683" protected _update_id => string(23) "57eb80d19f53e6-38035683" protected _name => string(7) "session" protected _lifetime => integer 7200 protected _encrypted => bool FALSE protected _data => array(1) ( "last_active" => integer 1475051729 ) protected _destroyed => bool FALSE }7 8 <div class="center" style="text-align: center; position: relative;"> 9 10 11 <? $img = Model_Pict::get_by_id($id); ?> 12 <img src="<?=$img->path?><?=$img->filename?>.<?=$img->ext?>" class="img-rounded img-responsive center-block"/> 13 14 15 16 <? if(!empty($img->title)) $img_title = $img->title; 17 else $img_title = NULL;
-
SYSPATH/classes/Kohana/View.php [ 62 ] » include(arguments)
0
string(107) "/home/host1365301/moto-probeg-volna-pamyati.ru/htdocs/www/kohana/modules/gallery/views/view_image_modal.php"
57 ob_start(); 58 59 try 60 { 61 // Load the view within the current scope 62 include $kohana_view_filename; 63 } 64 catch (Exception $e) 65 { 66 // Delete the output buffer 67 ob_end_clean();
-
SYSPATH/classes/Kohana/View.php [ 359 ] » Kohana_View::capture(arguments)
0
string(107) "/home/host1365301/moto-probeg-volna-pamyati.ru/htdocs/www/kohana/modules/gallery/views/view_image_modal.php"
1
array(4) ( "id" => NULL "gallery_title" => NULL "neigh" => object stdClass(2)
{ public next => integer 0 public prev => integer 0 }
"gallery_id" => NULL )354 { 355 throw new View_Exception('You must set the file to use within your view before rendering'); 356 } 357 358 // Combine local and global data and capture the output 359 return View::capture($this->_file, $this->_data); 360 } 361 362 }
-
SYSPATH/classes/Kohana/View.php [ 236 ] » Kohana_View->render()
231 */ 232 public function __toString() 233 { 234 try 235 { 236 return $this->render(); 237 } 238 catch (Exception $e) 239 { 240 /** 241 * Display the exception message.
-
SYSPATH/classes/Kohana/Response.php [ 160 ] » Kohana_View->__toString()
155 public function body($content = NULL) 156 { 157 if ($content === NULL) 158 return $this->_body; 159 160 $this->_body = (string) $content; 161 return $this; 162 } 163 164 /** 165 * Gets or sets the HTTP protocol. The standard protocol to use
-
MODPATH/gallery/classes/Controller/Galleryajax.php [ 40 ] » Kohana_Response->body(arguments)
0
object View(2)
{ protected _file => string(107) "/home/host1365301/moto-probeg-volna-pamyati.ru/htdocs/www/kohana/modules/gallery/views/view_image_modal.php" protected _data => array(4) ( "id" => NULL "gallery_title" => NULL "neigh" => object stdClass(2)
{ public next => integer 0 public prev => integer 0 }
"gallery_id" => NULL ) }35 ->set('id', $id) 36 ->set('gallery_title', $gallery_title) 37 ->set('neigh', $neigh) 38 ->set('gallery_id', $gallery_id); 39 40 $this->response->body($view)->render(); 41 } 42 43 public function action_setgallery() 44 { 45 $post = $this->request->post();
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Galleryajax->action_pict()
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_Galleryajax(2)
{ public request => object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _filters => array(0) protected _uri => string(29) "galleryajax(/<action>(/<id>))" protected _regex => array(1) ( 0 => string(69) "index|pict|setgallery|order|deleteimg|editimg|edittitle|removegallery" ) protected _defaults => array(1) ( "controller" => string(11) "galleryajax" ) protected _route_regex => string(73) "#^galleryajax(?:/(?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(11) "Galleryajax" protected _action => string(4) "pict" protected _uri => string(16) "galleryajax/pict" protected _external => bool FALSE protected _params => array(0) protected _get => array(1) ( "galleryajax/pict" => string(0) "" ) protected _post => array(0) protected _cookies => array(1) ( "session" => string(23) "57eb80d19f53e6-38035683" ) 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.0" }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.0" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(29) "galleryajax(/<action>(/<id>))" protected _regex => array(1) ( 0 => string(69) "index|pict|setgallery|order|deleteimg|editimg|edittitle|removegallery" ) protected _defaults => array(1) ( "controller" => string(11) "galleryajax" ) protected _route_regex => string(73) "#^galleryajax(?:/(?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(11) "Galleryajax" protected _action => string(4) "pict" protected _uri => string(16) "galleryajax/pict" protected _external => bool FALSE protected _params => array(0) protected _get => array(1) ( "galleryajax/pict" => string(0) "" ) protected _post => array(0) protected _cookies => array(1) ( "session" => string(23) "57eb80d19f53e6-38035683" ) 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.0" }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 [ 997 ] » Kohana_Request_Client->execute(arguments)
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(29) "galleryajax(/<action>(/<id>))" protected _regex => array(1) ( 0 => string(69) "index|pict|setgallery|order|deleteimg|editimg|edittitle|removegallery" ) protected _defaults => array(1) ( "controller" => string(11) "galleryajax" ) protected _route_regex => string(73) "#^galleryajax(?:/(?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(11) "Galleryajax" protected _action => string(4) "pict" protected _uri => string(16) "galleryajax/pict" protected _external => bool FALSE protected _params => array(0) protected _get => array(1) ( "galleryajax/pict" => string(0) "" ) protected _post => array(0) protected _cookies => array(1) ( "session" => string(23) "57eb80d19f53e6-38035683" ) 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) }
}992 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 993 ':uri' => $this->_uri, 994 )); 995 } 996 997 return $this->_client->execute($this); 998 } 999 1000 /** 1001 * Returns whether this request is the initial request Kohana received. 1002 * 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 }