I've developed My Own MVC Framework using php. I call view files in controller like:
include('../view/home.php');
but I want to use it like:
$this->view('home');
How can I define common function for that where I can just pass view name i.e home
only and it will do include view file without passing the full file path?