URI segment in Codeigniter4
We can fetch parts of the url in Codeigniter4 using the getSegments() function. This is similar to CI3 call $this->uri->segment function but with a slight …
Experiment with ease
We can fetch parts of the url in Codeigniter4 using the getSegments() function. This is similar to CI3 call $this->uri->segment function but with a slight …
CI4 has a helper for cookies management which contains some functions to implement the cookies. Let us see with an example. set_cookie function takes below …
CI4 provides in built array functions for grouping and sorting array elements to some extent. Lets us look at two functions here array_group_by and array_sort_by_multiple_keys …
CI4 provides in built helpers for arrays. This helps us avoid writing most of the logic using the traditional for loops or while loops. In …
Caching techniques in Codeigniter 4
Where is form_error method in Codeigniter4 ?
Codeigniter4 has provision for custom templates to modify the display html for validation error messages.Often we do not want to repeat the entire html on …
Codeigniter3 provides a File Uploading class functionality to upload and validate files with ease. This does not exist under Codeignter4.This posed a problem when migrating …
CI4 provides different methods to validate form inputs. We will look at an example with a custom rule for validation, which will validate the an …
Codeigniter4 provides an easy data validation class to validate different types of inputs.In the below example, we will use a form with username, email and …