You Are At The CakePHP Category Archive

Pagination Caching With CakePHP

02.09.10 // CakePHP // (4) // 321 views

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 data can not be cached as easily, as the paginate [...]

PHP: Random Salt String Generator

09.13.09 // CakePHP // (7) // 483 views

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 php do it for me, which i run from console!

<?php
function [...]

CakePHP URL Shortener Service Tutorial

08.26.09 // CakePHP // (5) // 2,735 views

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 out a basic tutorial which will give you an understanding [...]

Making CakePHP 404 Pages

08.21.09 // CakePHP // (7) // 701 views

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 for apocalypse to commence, then you have options!
Firstly you need [...]

It Is Time – CakePHP Job Wanted!

07.30.09 // CakePHP // (1) // 50 views

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 a web programmer or if need be, designer, and working [...]

CakePHP Vs. Ruby on Rails

07.10.09 // CakePHP // (0) // 32 views

My Laptop & Its Decals

07.07.09 // CakePHP // (0) // 11 views

My CakePHP Learning Experience

07.07.09 // CakePHP // (6) // 101 views

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 Python, Django, what a framework was, what MVC was and [...]

Excerpt: Why I Use Cakephp

04.29.09 // CakePHP // (2) // 14 views

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 is that almost everyone of them don’t know OOP. If they knew, [...]

Feeling Dirty After So Much SQL

04.28.09 // CakePHP // (0) // 12 views

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 of the month, not using timestamps from the current date! [...]

My CakePHP Category Tree Helper

04.08.09 // CakePHP // (0) // 404 views

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 system, where the elements are located through analysing not only [...]

Slug Slugfield Regex with CakePHP Validation

04.06.09 // CakePHP // (2) // 132 views

Not a very special post, however i simply wanted to make future reference for myself with my CakePHP custom regex validation for slug fields.

1
2
3
4
’slug’ => array(
‘RegEx’ => array(
‘rule’ => array(’custom’, ‘/^[a-zA-Z0-9-\s_]+$/i’),
‘message’ => ‘Slugs must only contain letters, numbers, underscores and hyphens "-"’),

Also here is my function to convert my titles to a slug Using [...]

CakePHP Wallpapers (Not Official)

03.24.09 // CakePHP // (3) // 386 views

1600 * 1200:

1280 * 1024:

1440 * 900:

1024 * 768:

1600 * 1200:

1280 * 1024:

1440 * 900:

1024 * 768:

More to come later on

CakePHP Fest

03.24.09 // CakePHP // (0) // 41 views

cakefest.org

Nice Graph for CakePHP

03.18.09 // CakePHP // (2) // 404 views