Automatic configuration of URL in CodeIgniter

In this mini-post we are going to explain how to configure our CodeIgniter in order to make it run on any server without having to be modifying the parameter “base_url” in the configuration. So, we can move our development version of our site to another different server (let’s say, the production server), without worrying about this parameter.

Inheritance between controllers in Codeigniter

Today, we will talk about the inheritance between controllers in CodeIgniter. At first glance, it could seem very simple to do and it should not be more complicated than this:

class Parent_controller extends Controller {

    function __construct()
    {
       parent::Controller();
       ...
    }
    ...
}

class Child_controller extends Parent_controller {
    function __construct()
    {
        parent::__construct();
        ...
    }
    ...
}

If we run this code as it is, CodeIgniter will return an error saying that it can not find Parent_controller class, which I founded quite surprising. […]

Adding AJAX to Codeigniter with jQuery

Today we will talk about adding AJAX to the PHP development framework called CodeIgniter. When I started to work with this framework I found rather strange that there was not too much information about how to integrate AJAX into it, since it is a relatively known framework and AJAX methodology is very common in web development. When I had the need to integrate AJAX using the JavaScript framework jQuery into my application made with CodeIgniter, I have been looking for information about this subject on the Internet and the truth is that, besides being very scattered, it is not very abundant and not very clear, so here it is my contribution from what I have learned, hopefully useful. […]

PHPMailer: Send emails from your site

This time I would like to talk about the library PHPMailer. This library is ideal if you need to send emails from your web site to its users (e.g: for notifying the data suscription, warning about the near account expiration, etc). A very interesting feature offered by this library is allowing us using a GMail account to send emails (of course, we must be the owners of that account). […]

Creating a SOAP server in CodeIgniter

Today I am going to talk about how to create a web services server with the library NuSOAP in CodeIgniter. This post is based on our previous post (Using NuSOAP in CodeIgniter), so I would recommend you to read that post before continuing with this one, since here we use the “pseudo” library nuSoap_lib that we have created earlier. […]

Exporting a Drupal site

Some days ago I was in need of exporting, from my localhost to my on-line host, a web site developed with the CMS Drupal in order to continue the work from a server with a similar environment to the production server. I was investigating in the Internet and there was only a little information and it was scattered, so I decided to put them all together in one post. […]