PHP & CakePHP
Auth, Acl & Permissions
- A lightweight approach to ACL - The 33 lines of Magic ~ 1 year ago by Felix (45 comments)
- CakePHP and Acl - Why is it so difficult? ~ 2 years ago by Felix (19 comments)
Controllers, Components & Shells
- FixturesShell - Share your test data ~ 2 months ago by Felix (3 comments)
- Make printing easy, using a PrintController ~ 1 year ago by Felix (10 comments)
- Dessert #1 - The 7 crucials of CRUD ~ 1 year ago by Felix (7 comments)
- Check if an action was called from within a Controller ~ 2 years ago by Felix (5 comments)
- Yummy CakePHP functions you should know about! ~ 2 years ago by Felix (10 comments)
- Reusing Views for CRUD ~ 2 years ago by Felix (0 comments)
- Using generateFields() + Fix fields of the type 'date' ~ 2 years ago by Felix (9 comments)
Core & Hacking
- Assert the yummyness of your cake ~ 9 months ago by Felix (7 comments)
- Exceptional Cake ~ 9 months ago by Felix (12 comments)
- Quick dessert: List all controllers of a CakePHP application ~ 1 year ago by Felix (10 comments)
- New fix for array junkies: Set::merge assembles yummy arrays ~ 1 year ago by Felix (12 comments)
- Cake 1.2's Set class eats nested arrays for breakfast! ~ 1 year ago by Felix (25 comments)
- Command line fun in CakePHP 1.2 ~ 1 year ago by Felix (17 comments)
- Learning from the CakePHP source code - Part II ~ 1 year ago by Felix (15 comments)
- Learning from the CakePHP source code - Part I ~ 1 year ago by Felix (7 comments)
- Dessert #14 - The new Xml class ~ 1 year ago by Felix (20 comments)
- Dessert #12 - Debugging requestAction ~ 1 year ago by Felix (0 comments)
- Dessert #10 - Default Models, Components & Helpers ~ 1 year ago by Felix (7 comments)
- Dessert #9 - Graceful Error Handling ~ 1 year ago by Felix (0 comments)
- Dessert #5 - Keep a custom configuration file ~ 1 year ago by Felix (6 comments)
- Dessert #3 - Generate a random password ~ 1 year ago by Felix (3 comments)
- Dessert #2 - Become friends with the Inflector ~ 1 year ago by Felix (2 comments)
- The ultimate CakePHP bootstrap technique ~ 1 year ago by Felix (9 comments)
- Issues with output buffering in CakePHP ~ 2 years ago by Felix (2 comments)
- Handling database connection errors in CakePHP ~ 2 years ago by Felix (1 comments)
- Welcome to the Dark Side of Plugins in CakePHP ~ 2 years ago by Felix (23 comments)
- Need to share global variables throughout your app? ~ 2 years ago by Felix (7 comments)
- Using CakePHP in external PHP Systems (CMS's, Weblogs, etc.) ~ 2 years ago by Felix (13 comments)
- Hacking everything (the good way) ~ 2 years ago by Felix (2 comments)
- Best Practises: Bug Fixing without Core Hacking ~ 2 years ago by Felix (19 comments)
DataSources, Models & Behaviors
- How to bend Cake's Model::find() method to your needs ~ 1 month ago by Tim (14 comments)
- How to Group By in CakePHP's new release Part 2 ~ 1 month ago by Tim (3 comments)
- How to do Group By conditions in Model find() calls in the CakePHP RC1 ~ 1 month ago by Tim (8 comments)
- Unlimited Model fields - Expandable Behavior ~ 1 month ago by Felix (21 comments)
- New Google Analytics API / DataSource! ~ 7 months ago by Felix (63 comments)
- Enforce utf8 for multiple db connections ~ 8 months ago by Felix (7 comments)
- How to put Combined Fields Into CakePHP's Model->generateList() ~ 11 months ago by Tim (38 comments)
- How Table Migrations In CakePHP 1.2 Can Save Your Life ~ 1 year ago by Tim (19 comments)
- Containable 2.0 BETA ~ 1 year ago by Felix (46 comments)
- Bringing the cold war to CakePHP 1.2 - The Containable Behavior ~ 1 year ago by Felix (41 comments)
- Ensuring uniqueness in your tables ~ 1 year ago by Tim (2 comments)
- Looking up foreign key values using Model::displayField ~ 1 year ago by Felix (8 comments)
- Making error handling for Model::save more beautiful in CakePHP ~ 1 year ago by Felix (20 comments)
- How to properly create a Model instance manually ~ 1 year ago by Felix (6 comments)
- Modeling relationships in CakePHP (faking Rails' ThroughAssociation) ~ 1 year ago by Felix (40 comments)
- Dessert #13 - A simple Config Model ~ 1 year ago by Felix (12 comments)
- Dessert #6 - MySql & UTF-8 ~ 1 year ago by Felix (4 comments)
- Update to the RSS feed parser Model ~ 1 year ago by Felix (0 comments)
- A solution for e-mail sending in CakePHP ~ 1 year ago by Felix (38 comments)
- Remember the days before spam? A CakePHP Model for Akismet ~ 2 years ago by Felix (22 comments)
- Google Analytics PHP Api (CakePHP Model) ~ 2 years ago by Felix (120 comments)
- Update on CakePHP Google Analytics API/Model ~ 2 years ago by Felix (11 comments)
- How about a WebModel? ~ 2 years ago by Felix (7 comments)
- Using REST Api’s as Models in CakePHP / A Google Calendar example ~ 2 years ago by Felix (9 comments)
- Validation Time - again ~ 2 years ago by Felix (0 comments)
- Validating fields with custom validateField() functions ~ 2 years ago by Felix (9 comments)
- Toggling Associations in CakePHP Models ~ 2 years ago by Felix (2 comments)
News
- CakePHP RC2 Released! ~ 3 weeks ago by Tim (4 comments)
- 3 Jobs for skilled Bakers ~ 1 month ago by Felix (5 comments)
- Better array syntax for PHP: Here's your chance to weigh in ~ 1 month ago by Nate (30 comments)
- I suck and you get a chance to punish me ... ~ 1 month ago by Tim (20 comments)
- Is This A Design Improvement ? ~ 2 months ago by Tim (18 comments)
- New CakePHP Beta ~ 6 months ago by Tim (0 comments)
- CakePHP 1.2 Manual ~ 8 months ago by Tim (1 comments)
- CakePHP Bleeding Edge - Google Group ~ 8 months ago by Felix (2 comments)
- Model::save() now returns an array! ~ 8 months ago by Felix (11 comments)
- PHP 5.2.1 was a evil release - check your server ~ 9 months ago by Felix (10 comments)
- Is Ruby the dog and PHP the dogfood? ~ 1 year ago by Felix (1 comments)
- Drake :: Drupal-CakePHP 1.0.1b Released ~ 1 year ago by Felix (4 comments)
- 10 Days of free Dessert! (CakePHP Tips) ~ 1 year ago by Felix (14 comments)
- CakeNews Changes ~ 1 year ago by Felix (2 comments)
- CakeNews Update ~ 2 years ago by Felix (5 comments)
- CakeNews - A CakePHP feed collection ~ 2 years ago by Felix (5 comments)
- 3000 candles on the CakePHP cake ~ 2 years ago by Felix (0 comments)
- CakePHP goes 1.0! ~ 2 years ago by Felix (0 comments)
- gwoo starts the first CakePHP based blog ~ 2 years ago by Felix (0 comments)
Other
- Crawl Google, they do the same to you ; ) ~ 1 month ago by Felix (6 comments)
- Finally - CakePHP 1.2 RC1 is out! ~ 1 month ago by Felix (11 comments)
- CakePHP 1.2 Stable! Come and help ~ 2 months ago by Felix (10 comments)
- A dirty tale from the real world ... ~ 6 months ago by Felix (9 comments)
- Sorting challenge ~ 9 months ago ago by Felix (12 comments)
- Migrating from WordPress to CakePHP ~ 10 months ago by Felix (10 comments)
- False == 0, or not? ~ 11 months ago by Felix (12 comments)
- CakePHP > All Others ~ 1 year ago by Tim (3 comments)
- Besiege Empty(), Isset() & Co. With This Great Syntax Cheatsheet ~ 1 year ago by Tim (0 comments)
- Try-Catch Syntax Weirdness ~ 1 year ago by Tim (13 comments)
- Screencast #1: Using vendor branching and CakePHP ~ 1 year ago by Felix (22 comments)
- How To Generate Monochromatic CSS Stylesheets Within Seconds Using PHP ~ 1 year ago by Tim (15 comments)
- Parsing XML With The DOM Library ~ 1 year ago by Tim (12 comments)
- Control Your CSS Via PHP - Good Stuff! ~ 1 year ago by Tim (4 comments)
- My new best friend - PHP's create_function() ~ 1 year ago by Felix (14 comments)
- How to transform XML into SQL Statements using XSLT ~ 1 year ago by Tim (2 comments)
- Parsing XML using SimpleXML ~ 1 year ago by Tim (28 comments)
- Issues with error reporting ~ 1 year ago by Tim (0 comments)
- My favourite "bug" ~ 1 year ago by Felix (18 comments)
- Bug-fix update for SVN/FTP Deployment Task ~ 1 year ago by Felix (8 comments)
- Long time, no post ... where I've been hiding. ~ 1 year ago by Felix (23 comments)
- Release early, Release often, A SVN/FTP Deployment Task ~ 1 year ago by Felix (29 comments)
- How to Plugin'ize your app ~ 2 years ago by Felix (5 comments)
- A miracle called gzip ~ 2 years ago by Felix (5 comments)
- SpliceIt! - Documentation Alpha available! ~ 2 years ago by Felix (2 comments)
- Problems with base Path in Layouts when using Plugins ~ 2 years ago by Felix (3 comments)
- Starting a CakePHP community website / Website Framework ~ 2 years ago by Felix (15 comments)
- Drake (Drupal + CakePHP) is making progress ~ 2 years ago by Felix (24 comments)
Performance, Optimization & Caching
- How I Turned A Slow Array Sort Into A Quick One Using The Quicksort Algorithmn ~ 1 year ago by Tim (10 comments)
- Optimising for-loops ~ 1 year ago by Tim (5 comments)
- Most probable first ~ 1 year ago by Tim (4 comments)
- Using Profilers ~ 1 year ago by Tim (0 comments)
- Releasing Resources ~ 1 year ago by Tim (2 comments)
- Simple and Complex Strings ~ 1 year ago by Tim (1 comments)
- Spotting performance leaks in your application ~ 2 years ago by Felix (7 comments)
Routes & Urls
- New router goodies ~ 4 months ago by Felix (30 comments)
- Handling inline links to dynamic resources ~ 1 year ago by Felix (0 comments)
- Title to url slug conversion ~ 1 year ago by Felix (6 comments)
- Dessert #11 - Welcome back, Friendly URL's ~ 1 year ago by Felix (24 comments)
- Bye, bye Friendly URL's ~ 1 year ago by Felix (26 comments)
- URL Aliases for CakePHP ~ 2 years ago by Felix (10 comments)
Security
- Introduction To PHP Security Vulnerabilities ~ 1 year ago by Tim (6 comments)
Testing, Debugging & Refactoring
- How To Execute Only Specific Test Methods in CakePHP Unit Tests ~ 1 month ago by Tim (3 comments)
- CakePHP Code Coverage for Group Tests ~ 1 month ago by Tim (0 comments)
- Make your life easier with these five CakePHP Quicktips ~ 1 month ago by Tim (15 comments)
- Running Tests from The Commandline in CakePHP ~ 2 months ago by Tim (7 comments)
- Unit Testing in CakePHP Part 1 - Introduction to Unit Testing ~ 2 months ago by Tim (19 comments)
- Code Coverage Analysis soon in CakePHP - Test How Well You Test ~ 2 months ago by Tim (16 comments)
- Upcoming: Code Coverage in CakePHP - Test How Well You Test ~ 2 months ago by Tim (2 comments)
- Programming Psychology - Return home early ~ 3 months ago ago by Felix (27 comments)
- Release early, Release often, CakeTaster ~ 1 year ago by Felix (37 comments)
- Should I refactor this piece of code? ~ 1 year ago by Felix (6 comments)
- Test Driven Development in Real World Apps ~ 1 year ago by Felix (2 comments)
- Controller testing in CakePHP ~ 1 year ago by Felix (9 comments)
Views & Helpers
- CakePHP Pluralize Helper ~ 8 months ago by Tim (3 comments)
- How To Transform HTML To Textile Markup - The CakePHP TextileHelper Revisited ~ 11 months ago by Tim (11 comments)
- MacGyver menu for CakePHP - What's the active menu item? ~ 1 year ago by Felix (16 comments)
- Making two form fields required to match each other ~ 1 year ago by Tim (1 comments)
- How-to: Use Html 4.01 in CakePHP 1.2 ~ 1 year ago by Felix (8 comments)
- Include only the JS you really need ~ 1 year ago by Felix (8 comments)
- Validating the cleaned output of HtmlHelper::dateTimeOptionTag() ~ 1 year ago by Felix (6 comments)
- Basic CakePHP templating skills ~ 1 year ago by Felix (12 comments)
- Dessert #8 - Render custom errors ~ 1 year ago by Felix (1 comments)
- Simple ListsHelper for displaying nested ul / ol lists ~ 2 years ago by Felix (3 comments)
- timeDiffInWords - a function to keep handy ~ 2 years ago by Felix (4 comments)
- Textile - A personal love of mine ~ 2 years ago by Felix (21 comments)


I am getting an error witht the sources var on google_analytics_source.php, line 187
foreach...
Hi Felix, I always read your blog. The fun things is that you work with the two things I love a...
The line: < ?php echo ($num % 2) ? 'row-a': 'row-b'; ?>">
Could be :
if($num ++ >0){...
Information hiding is one of the cornerstones of OOP. Without private/protected modifiers ......
This discussion has been going on for a bit, but I feel I just have to add my 2 pennies to...