I'm new to CodeIgniter. I've been loading common templates like header and footer in my controllers:
public function load_store_home_page($storeName) {
//Assign the page title
$global_data['page_title'] = $storeName;
//Load the header
$global_data['header'] = $this->load->view('header','', true);
...
But I'm doing this in every controller function. It seems messy. Is there a way I can somehow load these common elements globally?