Zend Framework getAction method
By using Zend_Rest_Route you are on a good way. I wouldn't recommend making it the default route though, as I had trouble when using MVC-stuff which required additional params not specified in the route, e.g. for a paginator. You could also move the routing-configuration to your application.ini to keep your Bootstrap-class clean.

I recommend simplifying your getAction() by using:

$id = $this-&gt;getRequest()-&gt;getParam('id', null);
$id = $this-&gt;_request-&gt;getParam('id');


Both are identical, but I prefer using the get-methods in case I use them to override the handling of the underlying class-property (in this case $this-&gt;_request). The second argument specifies the default value to be used, if the param is not set (by default this is null).

edit: Also, instead of

$this-&gt;_todo[count($this-&gt;_todo) + 1] = $item;

$this-&gt;_todo[] = $item;


this will automatically append $item to $this->_todo, even if the variable is not yet initialized.