CakePHP Quick Tip: $html->clearCrumbs
Published on 16/10/08 | Comments (0)
Hi All
As part of an ongoing project, I was using the CakePHP's htmlHelper to generate breadcrumbs.
Now combined with the tree behavior's getpath function, the $html-addCrumb() and $html-getCrumbs() functions are great and a real time saver, but...
...for this particular page I actually want to show two or more different bread crumb trails, one for location, and one or more for categories, and that's where I hit a snag, as it stands the htmlhelper allows you to keep adding crumbs and displaying the trail so far, but has no way of clearing the protected _crumbs array, should you need to make more than one trail.
AppHelper to the rescue
Since the app_helper file was added to CakePHP you now have the facility to add additional functionality to built in helpers so by adding the following code to app_helper.php:
'
[more...]
Recent...
CakePHP 1.2.0.7692 RC3
Published on 2/10/08 | Comments (0)
Hi all,
Just a quick post to help spread the word, cakePHP RC3 is finally here, and according to Nate's latest post at the bakery, this will be the final release candidate before they finalise the 1.2 version.
From reading through Nate's article, and the change set, It's clear that the team have worked tirelessly on iteration after
[more...]
Web Development Resources - Aptana Studio
Published on 11/9/08 | Comments (4)

At the risk of showing my age, it's been nearly 28 years since I wrote my first line of code. Way back in the heady days of ZX Basic on my trusty old ZX Spectrum. Back then to get anything usefull done it was Z80 assembly language or nothing.
Over the years I've used a lot of programming languages and a lot of
[more...]
Quicktips: Finding all the actions in your controller
Published on 11/9/08 | Comments (0)
Hi All,
Thought I'd share a quick tip today for how to automatically detect all the action names within a given controller.
This follows on from my last quicktip, describing how to detect all the controllers in your application and is usefull from witin navigation code or admin back ends.
$actions =
[more...]
CakePHP WhoIs Component
Published on 10/9/08 | Comments (0)
Here's one for all you aspiring web hosting ressellers out there, a fast and flexible whois class all wrapped up as a CakePHP component.
The component makes use of the excellent phpWhoIs class which you will need to download, unzip and place in APP/vendors/phpwhois in order for the component to work.
Click here to download
[more...]
Database switching in CakePHP
Published on 9/9/08 | Comments (0)
Thought I would share a quick tip today for managing database connections and debug information betwen your local development machine and production server.
Personally I tend to have a version running on my local development machine and on my web server and keep them in synch using the excellent Aptana Studio IDE and the
[more...]
