[eluser]Ascenti0n[/eluser]
Hi all
What I'm trying to do is have html files included within a section of a view file for certain content types/categories.
So say with the controller I have retrieved the files' path from the database, and then call the view - eg:
Code:
$data[$file-path] = "topcs/";
$this->load->view('main_view', $data);
and in the view, I would like to do something like:
Code:
<!--
CONTENT GOES HERE
-->
<?php include($file-path . 'static-page.php'); ?>
As you may have guessed, this didn't work. Can someone please explain what I need to do.
Thanks