Welcome Guest, Not a member yet? Register   Sign In
How to output the variables to all the views files
#2

Not sure if this what you mean but it will persist the data.


PHP Code:
echo view('blogview'$data, ['saveData' => true]); 

Additionally, if you would like the default functionality of the view method to be that it does save the data between calls, you can set $saveData to true in application/Config/Views.php.

See Also:

View Renderer
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: How to output the variables to all the views files - by InsiteFX - 11-16-2016, 09:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB