CodeIgniter Forums
include view files - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: include view files (/showthread.php?tid=10207)



include view files - El Forum - 07-22-2008

[eluser]Matrices[/eluser]
I'm new to CI, but I do know that you can string view files together by using:

Code:
$this->load->view('name')

What I'm hoping to find is some way to imbed a view file into a particular spot inside of another view file. For instance, if I were to be doing this using straight up php I would just place this code inside the page:

Code:
<? include ('pagename.php'); ?>

Is there a way to do this with CI?


include view files - El Forum - 07-22-2008

[eluser]beemr[/eluser]
Check out this thread on embedding views


include view files - El Forum - 07-22-2008

[eluser]Matrices[/eluser]
ty for the fast reply! I'll get right on it.