tdog.blog header

Entries from August 2008

CodeIgniter Article Published over at IBM DeveloperWorks

August 27th, 2008 No Comments

Hi there! Welcome to our blog. Don’t forget to sign up for our free RSS feed. We Triple Dog Dare Ya! And thanks for visiting!My new (brief!) intro to CodeIgniter is now available over at IBM DeveloperWorks. The article walks you through a very fast setup (less than one hour) of a one- or [...]

Tags:

Another errata for Professional CodeIgniter

August 16th, 2008 No Comments

(I’m on a roll here, folks. Sorry for all the notices. We had a number of last-minute changes in the code, and the chapter examples didn’t get updated….and when you look at it 300 times, you just start missing stuff.)
On page 102 the search() function contains this group of code:

if ($this->input->post(’term’)){
$search['results'] = $this->MProducts->search($this->input->post(’term’);
}else{

The [...]

Tags:

Second Errata Notice on Professional CodeIgniter

August 14th, 2008 No Comments

On page 110, there is this code in the function updateCart:

if (count($fullproduct)){
if (isset($cart[$productid])){
$prevct = $cart[$productid]['count'];
$prevname = $cart[$productid]['name'];
$prevname = $cart[$productid]['price'];

The second $prevname should be $prevprice, like this:

if (count($fullproduct)){
if (isset($cart[$productid])){
$prevct = $cart[$productid]['count'];
$prevname = $cart[$productid]['name'];
$prevprice = $cart[$productid]['price'];

Bookmark:

Tags:

Errata Notice for Professional CodeIgniter

August 14th, 2008 No Comments

On page 87 (chapter 4) we have the following example code:
$home['mainf'] = $this->MProducts->getMainFeature();
$skip = $home['mainf']['id'];
$home['sidef'] = $this->MProducts->getRandomProducts(3,$skip);
$data['main'] = $this->load->view(’home’,$home,true);
The code should instead be the following:
$data['mainf'] = $this->MProducts->getMainFeature();
$skip = $data['mainf']['id'];
$data['sidef'] = $this->MProducts->getRandomProducts(3,$skip);
$data['main'] = ‘home’;
$this->load->vars($data);
$this->load->view(’template’);
Bookmark:

Tags:

Inbox Zero: Achieved (for now)

August 4th, 2008 No Comments

Many of you who know me know that I’ve been trying to follow the precepts of GTD (getting things done) and in particular, this idea that you can get to Inbox Zero. Inbox Zero is Merlin Mann’s approach to email management that involves a certain action-based zeal–get that sucker down to ZERO items.
Now, this doesn’t [...]

Tags:

Build a Microsite Manager with CodeIgniter

August 4th, 2008 No Comments

I show you how to build a microsite manager with CodeIgniter.

Tags:

The Birth of an iPhone App: iHrrl

August 4th, 2008 No Comments

Good Times at iPhone DevCamp Austin.

Tags: