Welcome Guest, Not a member yet? Register   Sign In
How do use includes?
#4

[eluser]bastones[/eluser]
Ah. If you want specific functions to point to specific views you use something like this:

Code:
<?php
$array=array('var'=>'Headers','var1'=>'Footers');
$this->load->view('view_file_name',$array) // dont include the .php extension
?>

Remember the array elements become variables, so to get the array contents you use: echo $var;


Messages In This Thread
How do use includes? - by El Forum - 11-07-2008, 06:03 PM
How do use includes? - by El Forum - 11-07-2008, 06:24 PM
How do use includes? - by El Forum - 11-07-2008, 06:31 PM
How do use includes? - by El Forum - 11-07-2008, 06:53 PM
How do use includes? - by El Forum - 11-07-2008, 10:39 PM
How do use includes? - by El Forum - 11-08-2008, 05:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB