diff --git a/README.md b/README.md index 11d1cf13..976259fc 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,8 @@ It has been built from the More information about the plans for version 4 can be found in [CodeIgniter 4](https://forum.codeigniter.com/forumdisplay.php?fid=28) on the forums. -The user guide corresponding to the latest version of the framework can be found -[here](https://codeigniter4.github.io/userguide/). +You can read the [user guide](https://codeigniter.com/user_guide/) +corresponding to the latest version of the framework. ## Installation & updates @@ -55,10 +55,11 @@ PHP version 7.4 or higher is required, with the following extensions installed: - [intl](http://php.net/manual/en/intl.requirements.php) - [mbstring](http://php.net/manual/en/mbstring.installation.php) -> **Warning** -> The end of life date for PHP 7.4 was November 28, 2022. If you are -> still using PHP 7.4, you should upgrade immediately. The end of life date -> for PHP 8.0 will be November 26, 2023. +> [!WARNING] +> The end of life date for PHP 7.4 was November 28, 2022. +> The end of life date for PHP 8.0 was November 26, 2023. +> If you are still using PHP 7.4 or 8.0, you should upgrade immediately. +> The end of life date for PHP 8.1 will be November 25, 2024. Additionally, make sure that the following extensions are enabled in your PHP: diff --git a/app/Config/App.php b/app/Config/App.php index 6ae67862..21b4df20 100644 --- a/app/Config/App.php +++ b/app/Config/App.php @@ -14,7 +14,7 @@ class App extends BaseConfig * URL to your CodeIgniter root. Typically, this will be your base URL, * WITH a trailing slash: * - * http://example.com/ + * E.g., http://example.com/ */ public string $baseURL = 'http://localhost:8080/'; @@ -22,10 +22,10 @@ class App extends BaseConfig * Allowed Hostnames in the Site URL other than the hostname in the baseURL. * If you want to accept multiple Hostnames, set this. * - * E.g. When your site URL ($baseURL) is 'http://example.com/', and your site - * also accepts 'http://media.example.com/' and - * 'http://accounts.example.com/': - * ['media.example.com', 'accounts.example.com'] + * E.g., + * When your site URL ($baseURL) is 'http://example.com/', and your site + * also accepts 'http://media.example.com/' and 'http://accounts.example.com/': + * ['media.example.com', 'accounts.example.com'] * * @var list */ @@ -36,9 +36,9 @@ class App extends BaseConfig * Index File * -------------------------------------------------------------------------- * - * Typically this will be your index.php file, unless you've renamed it to - * something else. If you are using mod_rewrite to remove the page set this - * variable so that it is blank. + * Typically, this will be your `index.php` file, unless you've renamed it to + * something else. If you have configured your web server to remove this file + * from your site URIs, set this variable to an empty string. */ public string $indexPage = 'index.php'; @@ -48,12 +48,12 @@ class App extends BaseConfig * -------------------------------------------------------------------------- * * This item determines which server global should be used to retrieve the - * URI string. The default setting of 'REQUEST_URI' works for most servers. + * URI string. The default setting of 'REQUEST_URI' works for most servers. * If your links do not seem to work, try one of the other delicious flavors: * - * 'REQUEST_URI' Uses $_SERVER['REQUEST_URI'] - * 'QUERY_STRING' Uses $_SERVER['QUERY_STRING'] - * 'PATH_INFO' Uses $_SERVER['PATH_INFO'] + * 'REQUEST_URI': Uses $_SERVER['REQUEST_URI'] + * 'QUERY_STRING': Uses $_SERVER['QUERY_STRING'] + * 'PATH_INFO': Uses $_SERVER['PATH_INFO'] * * WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded! */ @@ -94,7 +94,7 @@ class App extends BaseConfig * * IncomingRequest::setLocale() also uses this list. * - * @var string[] + * @var list */ public array $supportedLocales = ['en']; @@ -106,7 +106,8 @@ class App extends BaseConfig * The default timezone that will be used in your application to display * dates with the date helper, and can be retrieved through app_timezone() * - * @see https://www.php.net/manual/en/timezones.php for list of timezones supported by PHP. + * @see https://www.php.net/manual/en/timezones.php for list of timezones + * supported by PHP. */ public string $appTimezone = 'UTC'; @@ -130,7 +131,7 @@ class App extends BaseConfig * If true, this will force every request made to this application to be * made via a secure connection (HTTPS). If the incoming request is not * secure, the user will be redirected to a secure version of the page - * and the HTTP Strict Transport Security header will be set. + * and the HTTP Strict Transport Security (HSTS) header will be set. */ public bool $forceGlobalSecureRequests = false; diff --git a/app/Config/Routing.php b/app/Config/Routing.php index 8d3c7731..c0234da8 100644 --- a/app/Config/Routing.php +++ b/app/Config/Routing.php @@ -63,13 +63,12 @@ class Routing extends BaseRouting /** * Sets the class/method that should be called if routing doesn't - * find a match. It can be either a closure or the controller/method - * name exactly like a route is defined: Users::index + * find a match. It can be the controller/method name like: Users::index * * This setting is passed to the Router class and handled there. * * If you want to use a closure, you will have to set it in the - * class constructor or the routes file by calling: + * routes file by calling: * * $routes->set404Override(function() { * // Do something here diff --git a/app/Views/welcome_message.php b/app/Views/welcome_message.php index 6d5da23f..919629fc 100644 --- a/app/Views/welcome_message.php +++ b/app/Views/welcome_message.php @@ -150,6 +150,11 @@ .further h2:first-of-type { padding-top: 0; } + .svg-stroke { + fill: none; + stroke: #000; + stroke-width: 32px; + } footer { background-color: rgba(221, 72, 20, .8); text-align: center; @@ -206,14 +211,14 @@ - @@ -253,17 +258,17 @@

Go further

- + Learn

The User Guide contains an introduction, tutorial, a number of "how to" guides, and then reference documentation for the components that make up - the framework. Check the User Guide !

- + Discuss

@@ -274,7 +279,7 @@ target="_blank">chat on Slack !

- + Contribute

@@ -309,7 +314,8 @@ -