« VerticalScope Is Hiring PHP Developers
» Back from Vancouver PHP Conference 2007

Uncategorized

My Next Foolish Project: A console for CakePHP

02.09.07 | 2 Comments

On the CakePHP mailing list, somebody familiar with Ruby on Rails’ console functionality asked “why isn’t there one of these in Cake?”. I, of course, jumped right in and said “such a thing does not exist in PHP.” Nate, of course, quickly corrected me and pointed out that PHP has an interactive mode. Which lets you do some stuff quickly for testing purposes, but this is not enough. So I foolishly volunteered to work on a console. Like I’m not busy enough.

So I got to thinking about how to do this. On the surface, it seems the easiest way to do this is to write a PHP script that takes entries on the command line, run the input through an ‘eval’ statement. Sounds easy enough, and I could write that in a hurry. I think the trickiness comes in figuring out how to hook it into CakePHP so that you can access Models that already exist. I guess this will be something that will bother me while I’m at the conference on Monday and Tuesday. I’ll be sure to mention it during my talk.

2 Comments

have your say

Add your comment below, or trackback from your own site. Subscribe to these comments.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

:

:


« VerticalScope Is Hiring PHP Developers
» Back from Vancouver PHP Conference 2007