Deutsche Sprache aktivieren Enable english language Starte Suche
Cleanup Component

I got tired of always having to save the output of Sanitize, so I decided to write a little “wrapper” that would let me pass the variables by reference and be done. Once I sat down I also threw together an improved version of cleanArray, that lets me specify what Sanitize function to use to clean the output:

  1. $this->Cleanup->cleanArray($this->data['Model']['ids'], 'sql');

There’s also some functions to strip urls and emails of any malicious characters.

You can grab the component over at CakeForge.

Sunday, August 20 2006 at 11:07 PM 27 Comment(s)
We are a go

And about damn time, really. After taking the backseat for way too long, I finally got my personal website done. Expect to read a lot about CakePHP and PHP, or whatever else I’m working on at the moment. Order today, and I’ll throw in the occasional article FOR FREE. Yep, you heard right. And if that on its own wasn’t awesome enough already, I’ll be blogging (Yes, I’m joining the hype) about my personal life.

Yeah, I was somewhat bored! ;)

Friday, August 18 2006 at 08:33 PM 274 Comment(s)
Cleanup Component
We are a go
Savings, Hot Deals and Freebies!