42Pixels

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

Croogo Excerpts

Posted by Jeremy Harris on Thu, Aug 12, 2010 @ 4:07pm

As of Croogo 1.3.1 beta, the default behavior for paginated views (promoted, search, etc.) was to show the entire article. I wasn't too fond of this so I edited my templates. For example, under mytheme/nodes/promoted.ctp the body text reads something like:

echo $layout->nodeInfo();
echo $layout->nodeBody();
echo $layout->nodeMoreInfo();

So I changed it to:

echo $layout->nodeInfo();
echo $layout...
Read More
Posted in Snippet, Croogo, Programming | Leave a comment

Testing Quirks

Posted by Jeremy Harris on Mon, Aug 09, 2010 @ 3:29pm

In my travels across the desert plains that are unit tests, I've discovered a few quirks I thought I'd share here.

Equal !== Identical

The above is obivous, but because my testing knowledge started with the CakePHP docs and the included tests that came with the software, I wrote most of my tests using assertEqual and thought it would be sufficient. I pulled some data, sorted it, and asserted ...

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

Testing controllers the (slightly less) hard way

Posted by Jeremy Harris on Tue, Aug 03, 2010 @ 6:57pm

UPDATE: This post uses an old version of the class to demonstrate. The principles are the same, though. I've hosted the project on Codaset for all to fork or whatever. It's also wrapped in a nice little plugin. I removed some of the more proprietary things (mocking ACL, configuring Auth, etc.) Get to it here: http://www.42pixels.com/downloads/cakephp-extended-test-case-plugin

 

I've just rece...

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

Starting out

Posted by Jeremy Harris on Tue, Aug 03, 2010 @ 5:04pm

My experience with Croogo has been very pleasant so far. I'm still learning my way around the code-side of things. That is, creating templates, plugins, etc. It looks incredibly promising.

I decided to put the blog up before actually completing a template. I have a lot of ideas and information to share that I've developed over the last year. A lot has been lost, unfortunately, so I'm going to ...

Read More
Posted in Croogo, Programming | Leave a comment

Hello World

Posted by Jeremy Harris on Mon, Jul 27, 2009 @ 4:32pm

The quintessential first post! I'm planning on actually updating this blog with relevant posts and articles about CakePHP and programming in general.

Two things I would like to say: I submitted my first (of hopefully many) modification to the CakePHP core. Don't be surprised if you find me unnecessarily giddy when it gets applied. Secondly, I have purchased my ticket to CakeFest which, I expec...

Read More
Posted in 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.