I've developed My Own MVC Framework using php. I call view files in controller like:
but I want to use it like:
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?