Welcome Guest, Not a member yet? Register   Sign In
Unable to access value from controller to view..
#5

If your controller has this:
PHP Code:
$data['dllcountry'] = 'Some value';
$this->load->view('myview',$data); 
then your view (in this case 'myview.php') is able to use the value of the variable $dllcountry.
In your view:
PHP Code:
<?php echo $dllcountry;?>
will result in 'Some value'.
Reply


Messages In This Thread
RE: Unable to access value from controller to view.. - by Wouter60 - 08-16-2015, 10:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB