CodeIgniter 4 – Step 2: Installing CodeIgniter in Docker containers

In the previous article we’ve set up the infrastructure that will hold our CodeIgniter application. In this tutorial we are finally going to really install CodeIgniter 4. I promise!…

If you never had the chance to follow the previous tutorial on how to build the Docker containers, or if you don’t have the nerve of following it, maybe it would be faster for you to simply clone the repository I’ve set up on Continue reading

CodeIgniter 4 – Step 1…b?: Start development fast? Why kill yourself with Docker or XAMPP? Use Laragon!

Having in mind that what you code is going to enter into production, the best solution is indeed to use Docker containers. So, if you want to really do coding, try my previous two tutorials: CodeIgniter 4 – Step 1: Let’s make ourselves some Docker containers and CodeIgniter 4 – Step 2: Installing CodeIgniter in Docker containers.

But if, by any reason you simply want to start writing, the best solution is to install Laragon, because, in my opinion is the best WAMPP (XAMPP solution), and at the same time, the best MEAN stack starting point. Continue reading

CodeIgniter 4 – Step 1: Let’s make ourselves some Docker containers

Hello, people. Long time, no tutorial…

I was thinking the other day about this thing called docker containers, and after all this time I still f***ing hate the idea of having this new stack over our main interest, the programming part. Why do we have to bother ourselves with these kind of problems, when we don’t even know how to program properly. Anyways…

Every time I want to start working with the “new” CodeIgniter 4 (it’s not so new, as it was launched quite some time ago), I have this big wall called “Docker containers”, even though it is not mentioned in the documentation, and it is not really necessary.

But, even though it is not necessary, let us be prepared for the deployment part when the project is done. So in order to be prepared for production let’s start by launching the project the right way. Continue reading

Allow .htm, .html extensions in WordPress without redirect

I am in the process of making a new WordPress website, starting from an existing WordPress which has a really long history, with a lot of plugins.

The problem I encountered was that the old website had pages that ended with “.htm”. Why would someone bother to have urls that ended with “.htm” extension is way beyond me, but considering that the client wanted to keep those urls the same (“for the moment”), and I didn’t want to add another plugin, I had to find a way to deal with those urls.

So, I started by allowing the extension in the rewrite rules of the new WordPress instance:

After that, we see that the url is accepted, but a redirect is done with 301 code. But we do not want a redirect, as this would not solve our problem. For this we need to remove the redirection filter:

Hope this helps anyone. Spent a day looking for a solution. If you have a better one, please be kind and share.

A new video tutorial about how to (properly) use session library in CodeIgniter


I came with a new video tutorial. This one is about how to properly configure the session library in CodeIgniter. Why this subject? Because, although it is clearly written in the official documentation about how to use the sessions, some people don’t ever seem to have the time to read. Continue reading

XML to JSON (or array…)

Good to know about how to transform an xml document into json:


Posted in PHP

Arduino – Day… Uno – Connecting the micro-controller to the computer

Well… It seems that I’ve come to take an interest into Arduino micro-controllers. And they look great. At least the version I bought seems to be ready to be included into really serious projects, having with it some sort of plastic cover that allows me to fix it with screws. Continue reading

How to set up CodeIgniter in order to use Gmail for emails

Now and then and… every time… I see people complaining that the email library of CodeIgniter doesn’t work. Why? Because they are using Gmail in order to send emails. And they are shocked that it doesn’t work. But in order to use Gmail as an email sender from your CodeIgniter, you have to know a couple of things. Continue reading