Welcome Guest, Not a member yet? Register   Sign In
How to add data when loading CI4 library
#1

Hi Team,
I have had to bite the upgrade bullet. Generally I find the docs excellent, but I have hit a small issue with upgrading a CI3 load->library call which includes an array of parameters
ie
            //Load library
            $config['upload_path'] = $upload_folder;
            $config['allowed_types'] = 'jpeg|jpg|png';
            $config['max_size'] = $max_size * 1024;
            $config['file_name'] = $col.'_'.$row; //Temp name
       
            $this->load->library('upload', $config);
            $this->load->library('image_lib');
I can find no help on this migration.
Can anyone point me in the right direction please or explain what I need to refactor perhaps?
TIA, Paul
Reply


Messages In This Thread
How to add data when loading CI4 library - by PaulC - 04-05-2025, 04:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB