Trying to understand how to echo from array |
$data = get_social();
$this->load->view('some_view', $data); Inside of some_view : <?php print $social_name; ?> The keys in $data are your variables.
Simpler is always better
|
Messages In This Thread |
Trying to understand how to echo from array - by doomie22 - 02-19-2016, 05:32 AM
RE: Trying to understand how to echo from array - by donpwinston - 02-19-2016, 06:31 AM
RE: Trying to understand how to echo from array - by doomie22 - 02-19-2016, 10:54 AM
RE: Trying to understand how to echo from array - by Wouter60 - 02-19-2016, 02:52 PM
RE: Trying to understand how to echo from array - by skunkbad - 02-19-2016, 02:57 PM
RE: Trying to understand how to echo from array - by Wouter60 - 02-19-2016, 03:00 PM
|