2
I’m having a question, how do I correctly include in php codeigniter
follows below the script...when I remove the scripts in php works correctly.
<?php include('includes/header.inc.php'); ?>
<body>
<div id="header" class="container">
<?php include('includes/navigation.inc.php'); ?>
</div>
<div id="banner-wrapper2">
<div id="banner" class="container">
<div class="boxD">
<h3>Quem somos</h3>
</p>
</div>
</div>
</div>
<?php include('includes/footer.inc.php'); ?>
Already with include, gives the error below:
PHP Error was encountered Severity: Warning
Message: include(includes/header.inc.php): failed to open stream: No such file or directory
Filename: pages/quemsomos.php
Line Number: 1
Backtrace:
File: /home/site.com.br/application/views/frontend/pages/quemsomos.php Line: 1 Function: _error_handler
File: /home/site.com.br/application/views/frontend/pages/quemsomos.php Line: 1 Function: include
File: /home/buscadefornecedores.com.br/application/Libraries/Template.php Line: 29 Function: view
File: /home/site.com.br/application/controllers/Pages.php Line: 23 Function: load
File: /home/site.com.br/public/index.php Line: 315 Function: require_once
this is the Routes.php file is on the web in the directory: /application/config/Routes.php
$route['/includes/'] = 'includes/header.inc'; $route['/includes/'] = 'includes/navigation.inc'; $route['/includes/'] = 'includes/footer.inc';
includes in folder: /application/includes/
in the public folder I have only the Assets folder and index.php
If anyone can help me with that question...
Thank you