Skip to content

Tag: codeigniter-4

CodeIgniter 4: Pass $data to the View file

Can someone help me with this? I can’t figure out on how can I show the results on the View file. I tried using $this->load->view(‘list-logs’,$data); but it shows the error Call to a member function view() on null. CONTROLLER VIEW Answer if you use CodeIgniter 4 then you must call the …

Codeigniter 4 localization issue with UTF-8 characters

The context I am trying to perform a lemmatization of some texts and I figured out that I can use CI4 localization for this. Basically I created some files in AppLanguagesro-RO and I am “translating” the words to their linguistic root. The language files are encoded in UTF-8 (I checked it on the s…

Setting Parameters in CI4s redirecting function

is there any possible way to send parameters within the redirection function from Codeigniter 4? Important, it is a named route: And i want to do a redirect like this: this works fine: this would be nice, if it works: or Why? I have HMVC and I would like to name every module with the same routes but different…