Welcome Guest, Not a member yet? Register   Sign In
$this->load->vars() in CI4
#1

I'm trying to convert an existing CI3.x application to CI4.x At the end of one of my controllers I am calling

PHP Code:
        $data['user_info'] = $logged_in_employee_info;
        
$data['controller_name'] = $module_id;

        
$this->load->vars($data); 

It's probably really obvious and I'm just missing it, but how do I need to convert $this->load->vars(); for use with CI4? I can't seem to find any documentation about it.

I looked here: https://codeigniter4.github.io/CodeIgnit...ading.html and while that is extensive, there doesn't seem to be a master conversion table showing which functions go to what CI4 counterparts. I searched this forum and found someone complaining that CI4 doesn't have $this->load->vars() but didn't seem to find a clear alternative.
Reply


Messages In This Thread
$this->load->vars() in CI4 - by objecttothis - 09-30-2021, 05:35 AM
RE: $this->load->vars() in CI4 - by kilishan - 09-30-2021, 06:17 AM
RE: $this->load->vars() in CI4 - by iRedds - 09-30-2021, 09:06 AM
RE: $this->load->vars() in CI4 - by InsiteFX - 10-01-2021, 01:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB