Currently I am calling a title from the database using the below code it works fine but I am wanting to implement a view all area (pulling other rows from the options table) in my admin area for the main options for my website.
What would be the best way to do this? Create another function for just the title? as I do not want to have a run a foreach loop just for the title.
function systemOptions()
{
$query = $this->db->get('options');
if($query->num_rows() > 0)
{
$row = $query->row_array();
$row['cms_name'];
}
return $row;
}
I would do something like this;