Initial project files: BESCMS full source

This commit is contained in:
bes
2026-08-13 23:37:46 +08:00
parent fa6cddb540
commit 2e26f85723
2166 changed files with 396625 additions and 0 deletions
@@ -0,0 +1,52 @@
<?php
declare(strict_types=1);
/**
* This file is part of CodeIgniter 4 framework.
*
* (c) CodeIgniter Foundation <admin@codeigniter.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace CodeIgniter\Exceptions;
class PageNotFoundException extends RuntimeException implements HTTPExceptionInterface
{
use DebugTraceableTrait;
/**
* HTTP status code
*
* @var int
*/
protected $code = 404;
/**
* @return static
*/
public static function forPageNotFound(?string $message = null)
{
return new static($message ?? lang('页面未找到'));
}
/**
* @return static
*/
public static function forControllerNotFound(string $controller)
{
return new static(lang('控制器(%s)不存在', $controller));
}
/**
* @return static
*/
public static function forMethodNotFound(string $controller, string $method)
{
return new static(lang('控制器(%s)的方法(%s)不存在', $controller, $method));
}
}