I am writing an application in CodeIgniter where I specify the
meta-tag on every page in every controller which I have managed to send to my header te
You can create a Base Controller and Extends all you other controller to that base controller.
Like this
data['errors'] = array();
$this->data['site_name'] = config_item('site_name');
}
}
Then In Your Controller
class Test extends MY_Controller
{
function __construct() {
parent::__construct();
$this->data['meta_title'] = 'Your Title';
}
}
And in you views access the page title like this:
echo(".$site_name. ");