Welcome Guest, Not a member yet? Register   Sign In
Issue with include
#1

Hi,

I have an issue with an include() in my views. 

Here is my project tree :     

In my News controller I have :
PHP Code:
...  $this->load->view('news/add'); 

And in my view news/add I have : 

Code:
<?php  include "../template/core/template_top.php" ?>
...
<?php include "../template/core/template_bottom.php" ?>

And i got this error : 
Code:
Message: include(../template/core/template_top.php): failed to open stream: No such file or directory
...
Message: include(): Failed opening '../template/core/template_top.php' for inclusion (include_path='.:/Applications/XAMPP/xamppfiles/lib/php')

Why ? My path is right, no ? 
I'm lost. 
Can anyone help please ?
Thank you !
Reply


Messages In This Thread
Issue with include - by kikk - 05-12-2016, 06:25 AM
RE: Issue with include - by Wouter60 - 05-12-2016, 09:55 AM
RE: Issue with include - by kikk - 05-13-2016, 12:12 AM
RE: Issue with include - by kikk - 05-13-2016, 06:34 AM
RE: Issue with include - by kikk - 05-17-2016, 12:40 AM
RE: Issue with include - by Wouter60 - 05-17-2016, 12:36 PM
RE: Issue with include - by John_Betong - 05-17-2016, 05:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB