[eluser]Yogesh[/eluser]
[quote author="pistolPete" date="1234455914"]First of all, please use
code tags.
You have to change the following line accordingly, because the instance variable
$this->email_model doesn't exist.
Code:
$data[‘all_email_types’]= $CI->email_model->all_email_types();
You'd only use
Code:
$data[‘all_email_types’]= $this->email_model->all_email_types();
inside of a controller.[/quote]
Thanks a lot !!! for correcting my silly mistake. now it is working