I am including two files in my index page:
$PageData = new Page_Data();
$PageData->title ="Welcome to my page";
$div= "<div class='login-form'>" . include_once "views/navigation.php" . include_once "controllers/login.php" . "</div>";
$PageData->content .=$div;
And I get these two errors.
Warning: include_once(controllers/login.php): failed to open stream: No such file or directory in C:\Users\kalle_000\Documents\KEA\3rd Semester\3rd Module\Module_8\PHP_new\index.php on line 9
Warning: include_once(): Failed opening 'controllers/login.php' for inclusion (include_path='.;C:\php\pear') in C:\Users\kalle_000\Documents\KEA\3rd Semester\3rd Module\Module_8\PHP_new\index.php on line 9 test content
What am I doing wrong? All the files are in the right folder where they should be. Any help appreciated!