Welcome Guest, Not a member yet? Register   Sign In
Trying to understand how to echo from array
#2

$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
Reply


Messages In This Thread
RE: Trying to understand how to echo from array - by donpwinston - 02-19-2016, 06:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB