Welcome Guest, Not a member yet? Register   Sign In
Question: CI4 function for CI3 $this->CI->load->view('a')

Hi folks,
I'm sorry, but I can't figure out how to load a view in CI4 like in CI3, when I need the sourcecode only:
$content = $this->CI->load->view('about/developer/modalform', $data, TRUE);
Is there a function in CI4 I missed?

The `view` function returns a string so you can either return that string (normal use case) or assign that content to a variable, like you're wanting to do here.

PHP Code:
$content view('about/developer/modalform'$data); 
Thumbs Up 

[quote pid="393264" dateline="1643033294"]
PHP Code:
OMG... sorry for the late responseit works... thanks a lot kilishan... so many trees.. but sometimes I don't see the forrest...  


Theme © iAndrew 2016 - Forum software by © MyBB