Topic Archives: CodeIgniter
Loading environment-specific configuration files in CodeIgniter
May 17, 2012
About a year ago, CodeIgniter got the addition of an ENVIRONMENT constant which saved me a lot of headaches with managing difference between my various environments (development, staging, production). // Conditional I add to index.php to self-determine the environment if ($_SERVER['SERVER_NAME'] == ‘mysite.dev’) { define(‘ENVIRONMENT’, ‘development’); } else { define(‘ENVIRONMENT’, ‘production’); } if (defined(‘ENVIRONMENT’)) { [Keep Reading…]
CodeIgniter Startup Script
February 24, 2012
Ever since CodeIgniter moved over to GitHub I’ve been interested in figuring out a way to use the EllisLab repository code inline with our specific project code to simplify updates but haven’t found a great way to go about it. Fairly recently I came across CodeIgniter Starter which is a step in the right directoin: A [Keep Reading…]
CodeIgniter Spark for SendGrid’s Newsletter API
February 16, 2012
I’ve submitted my first CodeIgniter library to GetSparks.org in an effort to start giving back to the community that has provided us with so many great tools. This library is a wrapper to the SendGrid Newsletter API and supports all of their provided methods. What is SendGrid? SendGrid is a easy-to-use email delivery service similar to Postmark or Amazon’s SES. [Keep Reading…]
Managing CodeIgniter Packages with Git Submodules
September 26, 2011
Link: http://philsturgeon.co.uk/blog/2011/09/managing-codeigniter-packages-with-git-submodules Great post on how to include Git projects within other Git projects as submodules. I’ve been wanting to do this for a long time!
CodeIgniter US State Helper
August 11, 2011
I’m working on a project today and building a credit card checkout form for what seems like the 1,000th time. It occurred to me that a US State Helper would save me from having to 1) look up all of the states every time, and 2) dump them into an array and build out functions [Keep Reading…]
Extracting Attachments From Emails With PHP
February 8, 2011
Yesterday I wrote about how to read emails with PHP, but I want to dig a bit deeper and discuss another part of the My Slow Low project that needed tackling: Extracting attachments from emails with PHP. For the purposes of this post, I will be specifically discussing file attachments, not HTML inline attached files. [Keep Reading…]
CodeIgniter Migrations
October 7, 2010
Link: CodeIgniter Migrations esbueno: An open source utility for Codeigniter inspired by Ruby on Rails. The one thing Ruby on Rails has that Codeigniter does not have built in is database migrations. That function to keep track of database chages (versions) and migrate your database to what ever version you need. Migrate up or migrate [Keep Reading…]
ExpressionEngine Documentation Quick Search with Alfred
September 29, 2010
Link: ExpressionEngine Documentation Quick Search with Alfred Use the power of Alfred to quickly and easily search ExpressionEngine documentation. Works great for CodeIgniter as well!
CodeIgniter Credit Card Helper
June 5, 2010
Jim O’Halloran has put together a stellar Credit Card Helper for CodeIgniter which includes the following highly useful functions: Card Number Truncation – Removes all but the first four and last three digits of a credit card and replaces them with X’s. Card Number Cleaning – Removes all non-numeric characters from the credit card number [Keep Reading…]
FTP Download with the CodeIgniter FTP Library
February 23, 2010
I was recently working on a project that involved FTP and I thought it would be a great chance to get away from the built-in PHP functionality and use the CodeIgniter FTP library instead. I was pretty surprised to find that there was no download functionality in the base FTP library as of CI 1.7.2. [Keep Reading…]