In this post, we will see how to resolve Sending Email By Loading View File in CI4 Question: I’m facing an issue with my code. I’m actually loading view using View(), but instead of sending email it rendering the view. ...

In this post, we will see how to resolve Codeigniter 4 – Store validation rules in separate files Question: I have all my rules in the Validation config file, like the documentation suggest: https://codeigniter4.github.io/userguide/libraries/validation.html#saving-sets-of-validation-rules-to-the-config-file For example: In my controllers I ...

In this post, we will see how to resolve How to fix ‘Cannot access the default controller’ using Codeigniter 4.2.6? Question: I have a problem working with URI routing in Codeigniter 4.2.6. I have Controller name Home and a method ...

Question: Start. HTTP request. Execute SQL queries. HTTP response. I want to get queries between requests and responses (how many queries and the raw SQL query). ->getLastQuery() only returns 1 last query. I want to save all queries between sending ...

Question: Remember this is codeigniter 4. I need help in here. I am learning to implement about the RestFul API in codeigniter 4. Below is my detail code. Routes : ApiManageMaintenance.php : Config Filter.php Note : I am using thirdparty ...

Question: I am trying to (1) upload a image file (2) resize it and center it and (3) change the file name and (4) move it into /public dir. Here is a part of my code; I assume I would ...

Question: I am trying to upload a file and move it to public/ folder. The file uploads without problem to writable folder, however, it is the moving to the public folder that has a problem. Here is my code; Path ...

Question: I need help here. This is my RestFul API And This is my source code : ApiMover.php Inside my class ApiMover in function show() I have a custom helper function name aasort(). The helper name is “Dennis_utility_helper”. I already ...

Question: In my BaseController I have tried to load my configuration file in various ways, but I cannot find the values Inside the initController function I tried: None of these work This is my MyConfig test configuration file located in ...

Question: Here are a couple of my routes; This one works: This one doesn’t work: As you can see, it is calling the same method. The passed in value is a userid like 72. If active is 1 in the ...