[eluser]luisjose[/eluser]
Maybe this is too simple, but I don't know what I'am doing wrong.
this is the file controllers/test.php
<?php
class Test extends Controller {
function Test()
{
parent::Controller();
}
function index()
{
$this->load->view('test_view');
}
function give_me_5()
{
return 5;
}
}
?>
and this is the file views/test_view.php
<?=$this->test->give_me_5(); ?>
but it doesn't work.
I'm calling the function correctly?
Sorry if I offend your inteligence with that simple question