42Pixels

Programming is art that fights back.
  • Home
  • About
  • Contact
  • Downloads

Moving to Github

Posted by Jeremy Harris on Mon, Jun 20, 2011 @ 6:00pm

After hosting my open source projects and plugins on Codaset for some time now, I've decided to move them to Github. There are a few reasons for this, which I'll explain. Before I go into detail, however, let me just say that I'm extremely thankful and supportive of Joel Moss (creator of Codaset) and his work to improve the git hosting world.

I've also been very happy with Joel's email custome...

Read More
Posted in Git, Open Source | Leave a comment

Cache Query Results Transparently

Posted by Jeremy Harris on Fri, Apr 22, 2011 @ 7:32pm

We all know that caching will (usually) speeds up your application. There are several methods for caching information in CakePHP, including caching your views, elements, arbitrary information and queries. I'm not going to go over these methods in this post, but rather introduce a plugin that caches the actual results of your queries. 

Caching your find call results can dramatically improve per...

Read More
Posted in Caching, Plugin, CakePHP, Programming | Leave a comment

Debugging CakePHP Ajax calls with FirePHP

Posted by Jeremy Harris on Fri, Feb 18, 2011 @ 1:47pm

If you're writing a CakePHP application, one of the first things you should be doing when starting out is downloading DebugKit, the invaluable debugging plugin. If you don't have it, go install it here: https://github.com/cakephp/debug_kit

Most web apps make use of Ajax here and there. And with Cake and jQuery basically doing the work for you, why wouldn't you? Debugging these requests can be ...

Read More
Posted in Debugging, CakePHP, Programming, Ajax | Leave a comment

Quick Tip: Better requestAction content

Posted by Jeremy Harris on Thu, Feb 03, 2011 @ 4:00pm

A big gripe I have with ajax is that when you initially land on the page, you have to wait for ajax to fetch content to fill containers (a la WordPress dashboard). This is annoying and ugly, and you typically have content bouncing around after it's populated. So, I thought, use requestAction() for the initial load (no bouncing), then your ajax pagination within those views will appear seamless....

Read More
Posted in Snippet, CakePHP, Programming | Leave a comment

Testing Controllers in CakePHP 2.0

Posted by Jeremy Harris on Wed, Dec 15, 2010 @ 10:30pm

In the past, testing controllers in CakePHP always had its hiccups. In 2.0, testAction was written from the ground up to allow for mocking and an all-inclusive set of results.

To gain this new functionality, you'll need to do is extend your test case by ControllerTestCase instead of the typical CakeTestCase. ControllerTestCase gives you access to two new methods, testAction and generate and se...

Read More
Posted in CakePHP 2.0, Open Source, CakePHP, Programming | Leave a comment
1 | 2 | 3 | 4

Donate to CakePHP!

Click here to lend your support to: cakephp1x and make a donation at www.pledgie.com !

Reach Out

  • @_jeremyharris
  • Github
  • Geekli.st

Internet Friends

  • Mark Story
  • Teknoid
  • Planet CakePHP
  • Debuggable
  • Fahad Ibnay Heylaal
  • Graham Weldon
  • Joshua McNeese
  • Jose Diaz-Gonzalez

Open Source Awesomeness

  • CakePHP
  • Croogo
  • Github
Powered by Croogo.