Can't access variable data from controller to view(template tpl file) I have very basic function
public function index() {
$message = "hello";
return $this->load->view('common/hello.tpl', $message );
}
In view template i try to get $message variable but not defined
<?php echo $message; ?>
public function index() {
$message = "hello";
return $this->load->view('common/hello.tpl', $message );
}
In view template hello.tpl i try to get $message variable but not defined
This is only example. I have model which must load but for now I need only to access from Controller to View.... Help..