PHP Version
8.1
CodeIgniter4 Version
Latest version of documentation
CodeIgniter4 Installation Method
Composer (using codeigniter4/appstarter)
Which operating systems have you tested for this bug?
Linux
Which server did you use?
fpm-fcgi
Database
n/a
What happened?
Minor "typo" in tutorial at https://codeigniter.com/user_guide/tutorial/static_pages.html
Steps to Reproduce
Read https://codeigniter.com/user_guide/tutorial/static_pages.html
Expected Output
In the "input", the year is 2021, in the output, the year is 2022, which is actually "funny" 😊
Anything else?
To not having to update this in the future, add a $current_year variable being passed to the view, with $data['current_year] = date('Y'); and use it in footer.php
PHP Version
8.1
CodeIgniter4 Version
Latest version of documentation
CodeIgniter4 Installation Method
Composer (using
codeigniter4/appstarter)Which operating systems have you tested for this bug?
Linux
Which server did you use?
fpm-fcgi
Database
n/a
What happened?
Minor "typo" in tutorial at https://codeigniter.com/user_guide/tutorial/static_pages.html
Steps to Reproduce
Read https://codeigniter.com/user_guide/tutorial/static_pages.html
Expected Output
In the "input", the year is 2021, in the output, the year is 2022, which is actually "funny" 😊
Anything else?
To not having to update this in the future, add a $current_year variable being passed to the view, with
$data['current_year] = date('Y');and use it infooter.php