Listing eight articles…
Fat Links in CakePHP
Posted on 20/1/08 by Paul Herron
Using one hyperlink to point to multiple pages
Occasionally, several links are relevant to the same piece of text. The usual approach to presenting this is to apply separate anchors to individual words within that text: There are many search...
Managing Simple Pages in CakePHP
Posted on 15/7/07 by Paul Herron
Creating pages dynamically with a PagesController and using a dynamic route to publish them at any URL.
As well as complex functionality like blogs or product listings, websites often need simple pages. An about us or our services page, for example, might consist of only text and images.CakePHP has...
A CakePHP Component for the Servage SMS API
Posted on 4/6/07 by Paul Herron
Say it with an automated text message.
Being a Servage customer, I'm using its SMS API, which offers two main features: Check if a text message can be sent to a specified number. Send a text message to a specified number. Servage...
Setting Up Domains for Local Projects on Windows Apache
Posted on 27/5/07 by Paul Herron
Using the Apache VirtualHost directive and Windows' hosts file to establish domain names for local projects.
In Apache, the easiest way to set up a project is to declare its directory path as the DocumentRoot in httpd.conf: [code]# DocumentRoot: The directory out of which you will serve your#...
Using afterFind() to create pseudofields in CakePHP
Posted on 6/5/07 by Paul Herron
CakePHP provides a useful model function, afterFind(), which can be used to manipulate results returned from any find(), findAll() or findBy<field>() query.
One useful application of this feature is in merging data from two or more database fields into one pseudofield. In the example below, afterFind() is added to a User model. A foreach statement...
No-Cost Computing: The Best Free and Open Source Windows Applications
Posted on 1/1/07 by Paul Herron
There's a huge amount of useful software available that costs nothing to download or use. Here's a list of the freeware and open source applications I wouldn't want to live without.
Antivirus avast!. It's functional and updates its virus definitions regularly. This software has been keeping my computers virus-free for over a year. Browsers Mozilla Firefox. The fast,...
Donate Your Carcass Online
Posted on 30/11/06 by Paul Herron
My parents always wanted me to go to medical school. uktransplant.org.uk let me make amends by filling out one simple form.
As someone who inadvertently destroys or loses donor cards on a regular basis, I was pleased to be referred by a friend to the NHS UK Transplant website. Because a computerised database is...
Fetch a Random Database Entry with CakePHP
Posted on 27/11/06 by Paul Herron
CakePHP's findAll() function can be used to fetch one or more random entries from a database.
To achieve this, all we need to do is order our retrieved records randomly. We can do that by inserting the rand() function in the $order field. To take only a certain number of these randomised...
What is This?
Articles about web development, life and more.
Article Tags
Show all articles, or just those tagged as:
Apache (1)
CakePHP (5)
Domains (1)
Ethics and That (1)
Freeware (1)
Open Source (1)
Servage (1)
SMS (1)
Software (1)
WAMP (1)
Web Development (6)
Windows (2)
Feed
The articles RSS feed is available here.
Elsewhom
-
A List Apart.
Influential webzine for web designers -
RichardHerring.com.
Home of the comedian and online journal-keeper -
hackdiary.
Matt Biddulph's blog -
Snook.ca.
Home of web developer Jonathan Snook
Recent Comments
-
Paul Herron on Using
afterFind()to create pseudofields in CakePHP
Hi Phil,Glad you found it useful! Thanks for... -
Phil McGuire on Using
afterFind()to create pseudofields in CakePHP
Thanks for the article! Just what I needed but... -
Tane Piper on Using
afterFind()to create pseudofields in CakePHP
Hey - great article! Works a treat in my... -
AD7six on Fetch a Random Database Entry with CakePHP
You'll get headaches doing that with a...
It has Been Said…
As I walked through the car park I saw a car with two posters in the back window with a photo of the kidnapped journalist and the words "Release Alan Johnston!". What are the chances that his captors will be walking through a carpark in Oxford?
Richard Herring
