If you use an IDE that supports Ant, like PHPEclipse, you can simply add the following Ant script to your project:
<?xml version="1.0"?>
<project name="YOUR_PROJECT" default="test">
<property name="scriptsDir" value="PATH_TO_SCRIPTS_DIR" />
<target name="test">
<exec dir="${scriptsDir}" executable="php">
<arg line="test.php" />
</exec>
</target>
</project>
Update (2006-01-10): This script is no longer useful because scripts/test.php has been removed from CakePHP.

How does PHPEclipse compare to Zend Studio? I’m on an ISDN line (64 kbit) so it’d be good to know if it’s worth trying it out.
Hm, difficult to say as I don’t have any experience with Zend Studio. I simply use PHPEclipse because I’m used to Eclipse, and I can have both Java and PHP projects in the same IDE. Negative aspects of using PHPEclipse are the plug-in hell and that there is no syntax-highlighting/code-completion in thtml-Files. HTH.
You can add a file type to be syntax-highlighted.
In Linux open up ~/.eclipse/org.eclipse.sdk.ide/updates/eclipse/plugins/net.sourceforge.phpeclipse_1.1.8/plugin.xml
Search for all instances of php4 and add a new line like the entry.
—-
Reposting because WordPress ate up my xml tags
—-
You can add a file type to be syntax-highlighted.
In Linux open up ~/.eclipse/org.eclipse.sdk.ide/updates/eclipse/plugins/net.sourceforge.phpeclipse_1.1.8/plugin.xml
Search for all instances of php4 and add in thtml where php4 exists.
WP: Well, in the meantime I found a solution: http://cakebaker.wordpress.com/2006/01/30/syntaxhighlighting-in-thtml-files-with-phpeclipse/
But anyway, thanks for the tip :)
I suggest to use free PHP IDE Codelobster PHP Edition with special CakePHP plug-in.
@Stas: Thanks for mentioning the Codelobster IDE, it is the first time I hear about it.