@Jagar
Thanx man.
but when i call template.tpl file , i got error
—————————
A PHP Error was encountered
Severity: User Warning
Message: Smarty error: unable to read resource: “template.tpl”
Filename: smarty/Smarty.class.php
Line Number: 1093
————————-
In my controller i have written
$data[“company”] = “EXcillo Pvt Ltd Company”;
$this->load->_ci_varmap[‘smarty_parser’] = ‘smarty’;
$this->smarty_parser->parse(“template.tpl”, $data);
————————-
And in application/config/smarty_parser.php file
i am using the following url for templates
$config[‘template_dir’] = dirname(APPPATH).“views”;
as i have placed my template.tpl in application/views folder (application/views/template.tpl)
I dont know why i am getting the above mentioned error