Monthly Archives: March 2011

Load Random Views in CodeIgniter (Reactor 2.0)

Perfect for loading a random testimonial, banner image, etc.  A quick helper for your coding pleasure = ) First, create your helper (helpers/randomview_helper.php).  Here are the contents: <?php if ( ! defined(‘BASEPATH’)) exit(‘No direct script access allowed’); /** * Random view */ function get_random_view($fullpath, $viewpath) { $file = str_replace(‘.php’, ”, random_element(get_filenames($fullpath))); return $viewpath.$file; } Notice [...]

Posted in CodeIgniter, Programming | Leave a comment

Master of the Agora – Those Who Create Marketplaces, and Those Who Participate in Them

A Parable Imagine you live in an ancient time – perhaps you are a Greek.  Each morning, you wake up and milk your cows, and then you walk three kilometers to the market, where you sell your milk.  You are not the only milk seller – this market is very large – and there are [...]

Posted in Abstract, Business, Economics, Internet | 4 Comments

CodeIgniter Payments – A New Library for CodeIgniter Reactor

UPDATE: Since writing this blog post, I’ve released a new library which replaces this one, using the CodeIgniter Sparks system. You can find it here: http://github.com/calvinfroedge/codeigniter-payments I am currently supporting 6 payment gateways, and should have several more added very soon. Thanks for reading! NOTE: You can skip reading the post and get right to [...]

Posted in Career, CodeIgniter, Programming | Comments closed