template loader function:

use:

$this->load->template($data);

Signed-off-by: MwangiKevin <mwangikevinn@gmail.com>