Žyma: Codeigniter
-
Running migrations for Codeigniter 4 via HTTP
I did not have command line access on a few of the servers that hosted the projects I was working on. And currently Codeigniter 4 only has documentation on running database migrations / rollbacks / seeds in the command line. Therefore I asked around and made a special controller for the migrations / rollbacks /…
-
PHP Function to Validate Lithuanian Personal Identification Number
[Update: here is a service that can be used either in browser or as an API to check multiple personal codes, using the functions described below: https://pr.lapas.info/ak] Below is a simple function for PHP to check if a number is a valid Lithuanian personal identification number. As I made it for Codeigniter 4, it is…
-
Codeigniter form with integrated data and file validation
In one application built on Codeigniter framework I needed to create a special form. The form had to allow a user to both enter text data and upload an image. It was actually the first time I had any experience with programming forms that would include file upload. And I found out it is not…