42Pixels

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

Slugs: Ugly Bugs, Pretty URLs

Posted by Jeremy Harris on Fri, Nov 05, 2010 @ 10:46am

I've always disliked how slugs and permalinks were created, managed and implemented. I've never thought of slugs as permalinks, and that's how I treat them. To me, a permalink is permanent and slugs are not.

The reason I dislike them is because they are usually implemented by adding a field to the database where the slug is stored. To me, this is duplicate information. I hate duplicate data. A...

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

Queue Emails Quick

Posted by Jeremy Harris on Mon, Oct 25, 2010 @ 10:15pm

When you're dealing with a large program, you're usually dealing with a large amount of emails. The problem with sending out, say, 200 emails in one action is two fold. The first issue is server load. The second is the user's experience.

Download it here: http://www.42pixels.com/downloads/cakephp-queueemail-plugin

Psst! Emails, it's your Queue!

My goal was to make a plugin that allows you to...

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

Sanitize Your Data Easily

Posted by Jeremy Harris on Tue, Oct 05, 2010 @ 11:15pm

When you're dealing with a lot of user submitted data, it's important to sanitize it. CakePHP provides a Sanitizer class that provides much of the functionality you need to deal with unclean data, but it can be a pain iterating through your data before saving it.

Enter Sanitizer

The Sanitizer plugin automatically sanitizes your data based on a set of rules you define on the model, similar...

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

Fulltext Searches with CakeDC Search Plugin

Posted by Jeremy Harris on Tue, Sep 28, 2010 @ 3:50pm

I recently dove into the Search plugin that the CakeDC created. It's one of many plugins that the CakeDC has been releasing lately. Isn't open source lovely? You can grab the Search plugin here.

MATCH (`description`) AGAINST ('totally +awesome -lame')

One of the requirements of my search was to allow boolean fulltext searches. I wanted it to be as dynamic as possible so I can easily perform a...

Read More
Posted in Searching, MySQL, Open Source, CakePHP, Programming | Leave a comment

Quick and DRY Modals with jQuery

Posted by Jeremy Harris on Mon, Aug 23, 2010 @ 6:40pm

Modals can be a nice way to present data with minimal page refreshes and in a way that sits well with your UI. In my case, I've always used them to load data via Ajax using jQuery. Something that's always bothered me with previous methods was that you would have to change something in your view, or worse, controller, depending on whether or not it was loaded using Ajax. The biggest thing that c...

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