This question already has an answer here:
Please help in View I want to call controller function Beacuse I have to use this in short code
In controller
public function __construct() {
parent::__construct();
$this->Front = & get_instance();
}
public function view() {
$this->index();
$this->load->view(view');
}
In view
<?=$this->Front->view();?>
</div>