Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@iamrafaelmelo
Copy link

Refactoring of the function to a simpler code, allowing the removal of the file extension from the view in the controllers.

Usage

Before:

public function index()
{
    view('_templates/header.php');
    view('home/index.php');
    view('_templates/footer.php');
}

After:

public function index()
{
    view('_templates/header');
    view('home/index');
    view('_templates/footer');
}

@BeardyMike
Copy link

This seems like a lot of work to fix a problem that I'm not sure even exists?
I consider myself pretty new to PHP (1yr) and this hasn't been as issue for me at any point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants