myframework\CHttpException

Страница не найдена

/var/www/myframework-v1.5/myframework/base/CWebApplication.php(36)

24     /**
25      * @param string $controller
26      * @param string $action
27      * @param array $arguments
28      * @throws CHttpException
29      */
30     public function runController(string $directory, string $controller, string $action, array $arguments = []): void
31     {
32         $baseName = ucfirst($controller) . 'Controller';
33 
34         if (! is_file($file = APP . '/controllers/' . ($directory ? $directory . '/' : '') . $baseName . '.php'))
35         {
36             throw new CHttpException('Страница не найдена', 404);
37         }
38 
39         require_once $file;
40 
41         $className = PROJECT . '\\' . $baseName;
42 
43         /** @var $class CController */
44         $class = new $className($directory, $controller, $action);
45 
46         $class->runController($arguments, $this->request->params);
47     }
48 

Stack Trace

#2
+
 /var/www/alenalearn.ru/root/apps/admin/web/index.php(41): myframework\CApplication->run()
36 
37 require_once APP . '/extends/WebApplication.php';
38 
39 F::$app = new WebApplication(require_once  '../config/main.php');
40 
41 F::$app->run();
2026-03-27 00:14:36