Closed iamrafaelmelo closed 3 years ago
Refactoring of the function to a simpler code, allowing the removal of the file extension from the view in the controllers.
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'); }
Refactoring of the function to a simpler code, allowing the removal of the file extension from the view in the controllers.
Usage
Before:
After: