Error!

Error [ Error ]:
Class 'Gs\Controller\Home' not found

APPPATH/modules/gs/classes/controller/home/news.php @ line 4

 0
 1<?php
 2namespace Gs\Controller\Home;
 3
 4class News extends \Gs\Controller\Home
 5{
 6    private $repopath;
 7    
 8    public function before()
 9    {

Backtrace

  1. COREPATH/classes/autoloader.php @ line 365
    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($classfalse))
    370        {
    
  2. COREPATH/classes/autoloader.php @ line 269
    264                            substr($classstrlen($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                }
    
  3. COREPATH/classes/router.php @ line 332
    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)
    
  4. COREPATH/classes/router.php @ line 291
    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($segments0$key 1)),
    296                        'action'           => isset($segments[$key 1]) ? $segments[$key 1] : null,
    
  5. COREPATH/classes/router.php @ line 258
    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'];
    
  6. COREPATH/classes/router.php @ line 233
    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     *
    
  7. COREPATH/classes/request.php @ line 341
    336                // update the loaded list of routes
    337                \Router::add($prepped_routesnulltrue);
    338            }
    339        }
    340
    341        $this->route = \Router::process($this$route);
    342
    343        if (\Fuel::$profiling)
    344        {
    345            \Profiler::mark(__METHOD__.' End route lookup');
    346        }
    
  8. COREPATH/classes/request.php @ line 69
    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        }
    
  9. DOCROOT/index.php @ line 133
    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($routefalse)->execute(array($e))->response();
    138    }
    
  10. DOCROOT/index.php @ line 172
    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}