Welcome Guest, Not a member yet? Register   Sign In
Recalling a field to print another one
#1

Look at this models:

PHP Code:
public function dataList($name) {
        
$db $this->load->database('default'TRUE);
        
$db    ->select('value')
            ->
where('name'$name)
 
                       ->from('setting');
        
$query_setting $db->get('');
        return 
$query_setting->row_array();
    } 

I would make sure to enter the variable name within the template and let me return the value.

For example:
In the template I write:

Code:
{$name_site}

The template return the value of string table that have for name "name_site"

My question is. How can I build the controller?

For I use smarty template engine.
Reply


Messages In This Thread
Recalling a field to print another one - by StratoKyke - 06-13-2015, 01:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB