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

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?
Reply
#2

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); 
Reply
#3
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...  

[/quote]
Reply




Theme © iAndrew 2016 - Forum software by © MyBB