Welcome Guest, Not a member yet? Register   Sign In
fetching view file to a variable
#1

[eluser]LAMP Coder[/eluser]
I was just wondering if there is already a function exists in CI that can do this.

i.e.
Code:
$someCotent = $this->load->fetchView('mypage',$data);
#2

[eluser]Thorpe Obazee[/eluser]
Code:
$someCotent = $this->load->view('yourpage', $data, TRUE);
#3

[eluser]LAMP Coder[/eluser]
sweet!! thank you for a quick reply.. saved me alot of time Smile




Theme © iAndrew 2016 - Forum software by © MyBB