Welcome Guest, Not a member yet? Register   Sign In
[solved] : controller functions calling from within fragment views, PHP4 -> PHP5
#2

[eluser]Matthew Pennell[/eluser]
Return it as some data and then pass it to the view?

Controller
Code:
$data['code'] = $this->insert_code();
$this->load->view('myview', $data);

View
Code:
<?= $code ?>


Messages In This Thread
[solved] : controller functions calling from within fragment views, PHP4 -> PHP5 - by El Forum - 10-02-2007, 06:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB