Žyma: Codeigniter

  • Running migrations for Codeigniter 4 via HTTP

    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

    PHP Function to Validate Lithuanian Personal Identification Number

    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 included in a class (that can be easily integrated into CI4 framework), but if you want, you can use it as a standalone function. By default it…

  • Codeigniter form with integrated data and file validation

    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…