You Are Here: Home » Articles

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...

Full article…

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...

Full article…

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...

Full article…

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#...

Full article…

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...

Full article…

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,...

Full article…

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...

Full article…

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...

Full article…

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

See More…

Recent Comments

It has Been Said…

To err is human, but to really foul things up requires a computer.

Farmers' Almanac

See More…

Back to top.