[eluser]ariok[/eluser]
Hi all i got some problems with a simple layout:
I have a controller called "home":
Code:
<?
class Home extends Controller {
function index(){
}
function Home() {
parent::Controller();
$this->load->helper('url');
$this->load->view("main_tpl");
}
function content()
{
$this->load->view("home_view");
}
}
?>
And a view called main_tpl.php..where i have the main template... in center of this template there's this code
Code:
.
.
.
<div id="content">
<?=$this->content()?>
</div>
.
.
.
Now... when i load myurl/index.php/home i obtain this error:
Call to undefined method CI_Loader::content() in...etc etc
with $this->content() i want to load function content defined in home.php ..is it correct?? where is my error...
P.s
I test this in my local machine without problem.. putting this code on a unix server i got the error before explained.