Welcome Guest, Not a member yet? Register   Sign In
foreach in models and controller
#5

I can try to edit the model in this way:
PHP Code:
public function info_server($name) {
        
$db $this->load->database('site'TRUE);
        
$db    ->select('value')
                        ->
from('arcor_server_setting')
            ->
where('name'$name);
        
$query_info_view $db->get('');
        
$row $query_info_view->row();
        echo 
$row->value;
    } 

I also tried to remove the echo.But it does not solve the problem. The tag is not read dovre but should be printed first.
Reply


Messages In This Thread
foreach in models and controller - by StratoKyke - 07-07-2015, 06:39 PM
RE: foreach in models and controller - by kenjis - 07-08-2015, 01:41 AM
RE: foreach in models and controller - by kenjis - 07-08-2015, 04:48 AM
RE: foreach in models and controller - by StratoKyke - 07-08-2015, 03:30 AM
RE: foreach in models and controller - by kenjis - 07-08-2015, 05:07 AM
RE: foreach in models and controller - by kenjis - 07-08-2015, 05:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB