Im new to MVC and I'm re-doing a lot of my code.
I have master.php
(index) which has:
<?php require_once("header.php"); ?>
Both master.php
and header.php
are in the same folder yet I get the following error:
Warning: require_once(1) [function.require-once]: failed to open stream: No such file or directory in /Users/MyName/Sites/MySite/Views/master.php on line 15
Fatal error: require_once() [function.require]: Failed opening required '1' (include_path='.:') in /Users/MyName/Sites/MySite/Views/master.php on line 15
This did not happen before. (Files were all in root folder). I don't see what the problem is though, since they are in the same folder - I don't have to go back '../'
or reference any other folders. What am I missing here?
Thanks.