You can create RESTfuI API in Codeigniter 4. This will be helpful when you want to manage the front end using a front end technology like React, Angular, Vue, etc. The CodeIgniter REST API can fulfill your requirement for request handling in the backend. The REST API will handle the request sent through the front-end […]
Resize Image By Image Manipulation in CodeIgniter 4
You can manipulate the image after uploading it in Codeigniter 4. There is no package or third-party library for it. The CodeIgniter 4 provides the image manipulation class. Through this class, you can manipulate images as per your need. You can set a watermark on the uploaded image. You can resize, and crop the image […]
CodeIgniter 4 Ajax Form Handling With Form Validation
Ajax provides a technique to handle the form request without reloading the page. You can use Ajax in CodeIgniter 4 for handling form data. This will allow you to validate and submit your form without refreshing it. This is used at the client-side to handle the client request in the browser. If you are working […]
Login and Registration Authentication in Codeigniter 4
The authentication system in any application is the main security feature. If you don’t want to give the open-access of your application to the user then it will require to have a lock. Here the authentication will work as an access key for that lock. At the application level, the user will need to enter […]
How to Send Email in CodeIgniter 4 Using Gmail SMTP
You can send an email using Gmail SMTP In CodeIgniter 4. For sending an email, you have to configure the email settings in your application. If you are sending email through the SMTP then there are two protocols that are TLS and SSL. Both protocols work on different ports. In this post, I will show […]
How to Implement jQuery Datatable in CodeIgniter 4
jQuery provides the datatable library to use in an HTML table. The jQuery datatable provides you the flexibility of pagination, searching, and ordering the data in the table. Even you can apply custom filters to the data. It also allows us to use column filters inside the table. You can implement it on any server-side […]
Generate Fake Data in CodeIgniter 4 Using Seeder and Faker
If you are working in a development environment, you always need to test your functionality. So for testing, you generally use the test data. You cannot perform the test on real data. Actually, the data may get updated and deleted according to the test cases. So, you can’t use the real data for the testing. […]
How to Remove index.php From URL in CodeIgniter 4
Usually, in the CodeIgniter 4 project, you will see there is an additional argument in the URL. That is index.php in your project URL. So, if you don’t want this extra parameter then you can remove it. This will make a clean URL of your website. There are several ways to remove this index.php in […]
Upload Multiple Image with Validation in Codeigniter 4
By creating an array of images, you can upload multiple image in Codeigniter 4. The HTML element of file type has an attribute to accept multiple files. The input element of file type requires the name attribute to be an array. We already know about an array in PHP. It can store multiple items in […]
How to Upload Image and File in Codeigniter 4 with Validation
When you want to upload image in Codeigniter 4, you have to take care of the validation. Without proper validation, file upload is not secure for SQL injection. Someone might do the SQL injection with the file upload. Hence, it is very important to prevent code injection through the file upload. In Codeigniter, you can […]