[eluser]razputin[/eluser]
I use $data['title'] to set the page title and I'm looking for a way to change the title based on the page content.
Is it possible to assign an element in a data array to another? Something like this (doesn't work):
Code:
$data['article']=$this->article_model->get_article($article_id);
$data['title']=$data['article']['title'];
Or is there a better approach to set the page title dynamically?