Welcome Guest, Not a member yet? Register   Sign In
Include not working after putting view files inside another folder
#1

[eluser]ninjayan[/eluser]
Okay so its me again with another problem.
So I was looking at the structures of files and I notice that my views folder has some php files now and still growing. So I created a folder inside my views and categorized the files to which folder I'm going to put.

views>includes
views>navigations
views>system_message
views>user_management

So I put the 'login_pending' file inside the 'system message' and changed the include from
include(includes/header.php); to include('../includes/header.php');
Now, I'm receiving this error message

A PHP Error was encountered

Severity: Warning

Message: include(../includes/header.php): failed to open stream: No such file or directory

Filename: system_message/login_pending.php

Line Number: 2


Messages In This Thread
Include not working after putting view files inside another folder - by El Forum - 10-22-2012, 03:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB