How to load and use SimplePie 1.3+ with CodeIgniter 2.1+

Posted by on Jun 18, 2013 in CodeIgniter | 2 Comments

The famous RSS parser, SimplePie, has changed a few rules in the last couple of versions. The previous methods used to install the library in CodeIgniter are now obsolete. Lets take a look at the new way to get it working in just 5 minutes.

Integrating the jQuery Validation plugin with Twitter Bootstrap

Posted by on Oct 22, 2012 in CodeIgniter, jQuery | 5 Comments

Twitter Bootstrap has some nice styling for error messages in forms. Using jQuery form validation could come handy and its actually pretty easy to integrate. The question is, how do we use the Bootstrap styling along with jQuery Validation plugin? Read on for more.

Error Validation Class for CodeIgniter Reactor 2.0

Posted by on May 3, 2011 in CodeIgniter, PHP | 3 Comments

CodeIgniter lacks of an error handling class for custom errors. The Form Validation class is very nice for forms, the logs are pretty useful as well, but what happens when we need to handle our own errors?. Currently there is no official solution for this so I decided to take the matter in my own […]

Exporting your MySQL table data with PHPExcel + CodeIgniter

Posted by on Mar 8, 2011 in CodeIgniter, PHP | 12 Comments

Most of the time my clients need to download data from their database tables. Exporting to CSV is a pain in the rear for users and it leads to confusion (you know the colon and semicolon stuff). Today, I decided to make a very small controller that is portable and efficient for exporting full MySQL […]

Facebook PHP SDK and CodeIgniter for basic user authentication

Posted by on Feb 24, 2011 in CodeIgniter, PHP | 205 Comments

With CodeIgniter 2, plugins are no longer an option. Usually you would just add the Facebook PHP SDK as a plugin and you were good to go, but now, you need to make a little modification to the SDK in order to use Facebook Connect on your CodeIgniter application. Lets start by explaining what is, […]

CodeIgniter 2.0 is out with cool features!

Posted by on Feb 13, 2011 in CodeIgniter | 4 Comments

I know its a bit late, CI 2.0 has been out since January 28th, 2011, but lets talk about it anyway and recapitulate some of the new features of this framework. The new stuff is great, and this time I believe it deserves a second look if you are not much into CI. Let me […]

$_GET parameters on CodeIgniter

Posted by on Dec 13, 2010 in CodeIgniter, PHP | One Comment

Yeah, it is a much discussed topic in every CI forum. I needed to set up a payment gateway and it was mandatory to receive the gateway response via $_GET, so I decided to do an investigation on the matter and this is what I came up with.

CodeIgniter 2.0 new FTP class “download” method

Posted by on Nov 25, 2010 in CodeIgniter, PHP | 3 Comments

I needed to download some files from a remote FTP server and the store them in my website. The usual way would be to download all the files to my computer and then upload them to my website. In CodeIgniter 1.7.2 you would have to do this, however, the new CodeIgniter 2.0 has a new […]

HTML Table Class on CodeIgniter 2.0

Posted by on Aug 31, 2010 in CodeIgniter, PHP | 3 Comments

CodeIgniter 2.0 is coming out soon, so lets start studying the changes done to the HTML Table Class in the dev-release. One of the most requested features was the ability to set tag attributes to individual cells. On CI 2.0 this is completely possible, however, since the documentation is not fully updated yet, I decided […]

Create thumbnails on the fly with CodeIgniter

Posted by on Aug 9, 2010 in CodeIgniter, PHP | 9 Comments

Before explaining the solution, you should know creating thumbnails on the fly is server inefficient, eats a lot of resources and they should be generated as soon as the images are uploaded. However, there are some occasions when we absolutely need to generate thumbs on the fly. In this article we will learn how to […]