Posts in CakePHP

Stay Out CakePHP Component

Stay Out CakePHP Component

I have recently been developing a new website which has found me in the position of writing a lot of session handling code. I came across the concept of logged out all sessions across multiple instances, and out came this CakePHP session flushing component stay... [+]

CakePHP Rainbow Table Protection Behaviour

So after looking over some security techniques and discovering the quite interestingly named Rainbow table password cracking mechanism I decided to look into a way around this table password cracker. The default way that CakePHP hashes its passwords into the database is via hashing from... [+]

CakePHP & Caching Until a Future Post

We had implemented a caching system for all find, pagination and pagination count methods with CakePHP. You can find a post on this here. The cache was expiring after every hour, however we failed to realise something. Our CMS system that we built allows posts... [+]

Pagination Caching With CakePHP

Pagination Caching With CakePHP

A site i was working with was using pagination quite extensively with lots of records and associations. This was producing unnecessary high load on the database and wait times on the production site. Caching had to be done. Unlike normal returned data from finds etc. Paginated... [+]

PHP: Random Salt String Generator

PHP: Random Salt String Generator

As i develop new CakePHP projects i like to spin the wheel with generating a “secure” salt string to be used in core.php. Instead of just bashing my head against the keyboard hoping for some random, usable, 40 character long string, i decided to let... [+]

CakePHP URL Shortener Service Tutorial

If you have just woken up from a 10 year long coma, you might realise that the internet has been dumbed down to 140 characters and services that offer “URL Shortening” are quite widely used. Well today, coma awakened or not, I will be writing... [+]

Making CakePHP 404 Pages

Making CakePHP 404 Pages

If you’re after a way to customise the look of your 404 pages then simply change the “/app/views/errors/error404.ctp” page. However if you were like me, and didn’t want your 404 to simply be a static page, rather redirect the user or press the red button... [+]

It Is Time – CakePHP Job Wanted!

That’s right. It is time! It’s time to get resumé writing and hitting the pavement looking for a job! What kind of job you ask? An awesome one! I am primarily looking for something in the internet industry, if one even exists! Starting off as... [+]

CakePHP Vs. Ruby on Rails

CakePHP Vs. Ruby on Rails

My Laptop & Its Decals

My Laptop & Its Decals

My CakePHP Learning Experience

I first got into CakePHP roughly 3-4 months ago. It was a result of me dropping the Python & Django books and running back to the PHP world, which I was already familiar with. I simply didn’t have the time to wrap my head around... [+]

Excerpt: Why I Use Cakephp

Excerpt: Why I Use Cakephp

Awesome comment about why he uses CakePHP @ http://dojo.codegreene.com/?p=148 I’ve been developing for the last 9 years. Since I got into frameworks, I can’t imagine myself one day “digging holes without a shovel”. Everyone says it’s hard to learn how to use frameworks. The fact... [+]

Feeling Dirty After So Much SQL

What this does is go through my Apache log in my MySQL DB and calculate unique hits, overall hits, amount of bandwidth used per month, and only for the past 3 months! Making sure each month begins and ends on the first and last day... [+]

My CakePHP Category Tree Helper

Hey everyone. Not so much a tutorial here, but more so a snippet of code to help some of you out. My problem was with the CakePHP tree component. The way that the tree organised data in CakePHP works is through establishing a neighbour like... [+]

Slug Slugfield Regex with CakePHP Validation

Not a very special post, however i simply wanted to make future reference for myself with my CakePHP custom regex validation for slug fields. 'slug' => array( 'RegEx' => array( 'rule' => array('custom', '/^[a-zA-Z0-9-\s_]+$/i'), 'message' => 'Slugs must only contain letters, numbers, underscores and hyphens... [+]