Fuel\Core\PhpErrorException [ Notice ]:
Trying to get property of non-object
168 $this->_description = $this->_action_name . "。".preg_replace("!\n!", "", $user->comment); 169 } 170 public function action_view($id) 171 { 172 $user = \Model_User::find($id); 173 $user->comment = str_replace("<br>", "\n", $user->comment); 174 $json = $this->_buildJson($user); 175 $data = array( 176 'user' => $user, 177 'json' => $json, 178 );
98 include COREPATH.'classes/errorhandler.php'; 99 class_alias('\Fuel\Core\Errorhandler', 'Errorhandler'); 100 class_alias('\Fuel\Core\PhpErrorException', 'PhpErrorException'); 101 } 102 103 return \Errorhandler::error_handler($severity, $message, $filepath, $line); 104}); 105 106function setup_autoloader() 107{ 108 \Autoloader::add_namespace('Fuel\\Core', COREPATH.'classes/');
168 $this->_description = $this->_action_name . "。".preg_replace("!\n!", "", $user->comment); 169 } 170 public function action_view($id) 171 { 172 $user = \Model_User::find($id); 173 $user->comment = str_replace("<br>", "\n", $user->comment); 174 $json = $this->_buildJson($user); 175 $data = array( 176 'user' => $user, 177 'json' => $json, 178 );
449 // fire any controller started events 450 \Event::instance()->has_events('controller_started') and \Event::instance()->trigger('controller_started', '', 'none'); 451 452 $class->hasMethod('before') and $class->getMethod('before')->invoke($this->controller_instance); 453 454 $response = $action->invokeArgs($this->controller_instance, $this->method_params); 455 456 $class->hasMethod('after') and $response = $class->getMethod('after')->invoke($this->controller_instance, $response); 457 458 // fire any controller finished events 459 \Event::instance()->has_events('controller_finished') and \Event::instance()->trigger('controller_finished', '', 'none');
69 $response = Response::forge($response); 70 } 71 } 72 elseif ($e === false) 73 { 74 $response = Request::forge()->execute()->response(); 75 } 76 elseif ($route) 77 { 78 $response = Request::forge($route, false)->execute(array($e))->response(); 79 }
90{ 91 // Boot the app... 92 require APPPATH.'bootstrap.php'; 93 94 // ... and execute the main request 95 $response = $routerequest(); 96} 97catch (HttpNoAccessException $e) 98{ 99 $response = $routerequest('_403_', $e); 100}