Skip to content

Bug: Minor detail in tutorial (very minor) #7395

@joho1968

Description

@joho1968

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugVerified issues on the current code behavior or pull requests that will fix them

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions