Fuel\Core\PhpErrorException [ Notice ]:
Trying to get property 'name' of non-object
49 50 public function action_img(){ 51 $id = $this->param('id'); 52 53 $img = Model_Image::find($id); 54 $info = pathinfo( $img->name ); 55 //$file_name = '/mnt/gdfuse/pic/koma/'.$img->path.$img->name; 56 $file_name = '/var/www/pic/koma/'.$img->path.$img->name; 57 58 return Response::forge(file_get_contents($file_name), 200, array('Content-Type' => 'image/'.($info['extension']=="jpg"?"jpeg":$info['extension']))); 59 }
107 include COREPATH.'classes/errorhandler.php'; 108 class_alias('\Fuel\Core\Errorhandler', 'Errorhandler'); 109 class_alias('\Fuel\Core\PhpErrorException', 'PhpErrorException'); 110 } 111 112 return \Errorhandler::error_handler($severity, $message, $filepath, $line); 113}); 114 115function setup_autoloader() 116{ 117 \Autoloader::add_namespace('Fuel\\Core', COREPATH.'classes/');
49 50 public function action_img(){ 51 $id = $this->param('id'); 52 53 $img = Model_Image::find($id); 54 $info = pathinfo( $img->name ); 55 //$file_name = '/mnt/gdfuse/pic/koma/'.$img->path.$img->name; 56 $file_name = '/var/www/pic/koma/'.$img->path.$img->name; 57 58 return Response::forge(file_get_contents($file_name), 200, array('Content-Type' => 'image/'.($info['extension']=="jpg"?"jpeg":$info['extension']))); 59 }
478 // fire any controller started events 479 \Event::instance()->has_events('controller_started') and \Event::instance()->trigger('controller_started', '', 'none'); 480 481 $class->hasMethod('before') and $class->getMethod('before')->invoke($this->controller_instance); 482 483 $response = $action->invokeArgs($this->controller_instance, $this->method_params); 484 485 $class->hasMethod('after') and $response = $class->getMethod('after')->invoke($this->controller_instance, $response); 486 487 // fire any controller finished events 488 \Event::instance()->has_events('controller_finished') and \Event::instance()->trigger('controller_finished', '', 'none');
66 $response = Response::forge($response); 67 } 68 } 69 elseif ($e === false) 70 { 71 $response = Request::forge()->execute()->response(); 72 } 73 elseif ($route) 74 { 75 $response = Request::forge($route, false)->execute(array($e))->response(); 76 }
91{ 92 // Boot the app... 93 require APPPATH.'bootstrap.php'; 94 95 // ... and execute the main request 96 $response = $routerequest(); 97} 98catch (HttpBadRequestException $e) 99{ 100 $response = $routerequest('_400_', $e); 101}