Currently it searches for files in the folder where index.php. My question is how can I make it search for files in a sub folder? I have all my sub pages in 'pages' folder. Im guessing i have to change this line:
$file = $page . ".php";
But I dont know how to change the path correctly. I think the period in the middle means "current folder" which I have to change to reflect the path..