Error [ Error ]:
Class 'Gs\Controller\Home' not found
0 1<?php 2namespace Gs\Controller\Home; 3 4class News extends \Gs\Controller\Home 5{ 6 private $repopath; 7 8 public function before() 9 {
360 protected static function init_class($class, $file = null) 361 { 362 // include the file if needed 363 if ($file) 364 { 365 include $file; 366 } 367 368 // if the loaded file contains a class... 369 if (class_exists($class, false)) 370 {
264 substr($class, strlen($ns) + 1), 265 array_key_exists($ns, static::$psr_namespaces) 266 ); 267 if (is_file($path)) 268 { 269 static::init_class($class, $path); 270 $loaded = true; 271 break; 272 } 273 } 274 }
327 */ 328 protected static function check_class($class) 329 { 330 try 331 { 332 return class_exists($class); 333 } 334 catch (\Exception $e) 335 { 336 // capture autoloader failures 337 if (strpos($e->getFile(),'/core/classes/autoloader.php') !== false)
286 287 array_pop($temp_segments); 288 289 foreach ($classes as $class) 290 { 291 if (static::check_class($class)) 292 { 293 return array( 294 'controller' => $class, 295 'controller_path' => implode('/', array_slice($segments, 0, $key + 1)), 296 'action' => isset($segments[$key + 1]) ? $segments[$key + 1] : null,
253 $match->module = array_shift($segments); 254 $namespace .= ucfirst($match->module).'\\'; 255 $module = $match->module; 256 } 257 258 if ($info = static::parse_segments($segments, $namespace, $module)) 259 { 260 $match->controller = $info['controller']; 261 $match->controller_path = $info['controller_path']; 262 $match->action = $info['action']; 263 $match->method_params = $info['method_params'];
228 if ($match->callable !== null) 229 { 230 return $match; 231 } 232 233 return static::parse_match($match); 234 } 235 236 /** 237 * Find the controller that matches the route requested 238 *
336 // update the loaded list of routes 337 \Router::add($prepped_routes, null, true); 338 } 339 } 340 341 $this->route = \Router::process($this, $route); 342 343 if (\Fuel::$profiling) 344 { 345 \Profiler::mark(__METHOD__.' End route lookup'); 346 }
64 { 65 $class = \Inflector::words_to_upper('Request_'.$options['driver']); 66 return $class::forge($uri, $options, $method); 67 } 68 69 $request = new static($uri, isset($options['route']) ? $options['route'] : true, $method); 70 if (static::$active) 71 { 72 $request->parent = static::$active; 73 static::$active->children[] = $request; 74 }
128 $response = Response::forge($response); 129 } 130 } 131 elseif ($e === false) 132 { 133 $response = Request::forge()->execute()->response(); 134 } 135 elseif ($route) 136 { 137 $response = Request::forge($route, false)->execute(array($e))->response(); 138 }
167{ 168 // Boot the app... 169 require APPPATH.'bootstrap.php'; 170 171 // ... and execute the main request 172 $response = $routerequest(); 173} 174catch (HttpBadRequestException $e) 175{ 176 $response = $routerequest('_400_', $e); 177}