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
Just to add another, there's no reason this shouldn't work:
$data['query'] = $this->Listing_model->get_card($card);
$this->load->view('header', array('page_title' => $data['query'][0]->column_name));
//Will there only be one result? Consider returning $query->row(). Multiple,
//loop through and set one title
In your view:
=isset($page_title) ? $page_title : "";?>
If this doesn't work your query isn't returning what you think it is.