Pages

Monday, November 30, 2009

Forcing a 404 Error with Zend Framework

There are many things I like about Zend Framework. And there are times when using it is like searching for a black cat in a dark room. Seemingly simple tasks end up frittering away time looking through the documentation and source code.

Inducing a 404 response is one of these things. I didn't want to simply redirect the page, but rather, I wanted the ErrorController to handle the error just like usual.

In your action controller:

// Some "not found" condition occurs.
throw new Zend_Controller_Action_Exception('Page not found.',404);

And in views/scripts/error/error.phtml:

<? if (404 == $this->exception->getCode()): ?>
// Put your 404 message here.
<? endif ?>

Thursday, November 19, 2009

Been There: The Long and Winding Road

We started our geographic note taking iPhone application, Been There, back in April. Principal development was done by July. Then the process of test, report, fix, test lasted through September. At which point we started the process of preparing for submission. It's been one thing after another, but Lord Willing, I will submit the app to Apple's approval process tomorrow.

I could do it tonight, but I don't think I'm up to it.

Thursday, November 5, 2009

When Flexigrid Columns Don't Line Up

If find it really aggravating to fix a problem only to encounter it again -- after I've long forgotten how I fixed it. This happened to me when I was creating a new PHP wrapper class around the Flexigrid plugin for jQuery.

And the reason was ... the stylesheet had:

table { width: 100%; }

Remove this or add a class or inline style to your table to allow Flexigrid to do its thing.

Of course, I don't actually remember if this is the problem I encountered last time, but I'm posting this for the benefit of all -- including myself.


Monday, November 2, 2009

Update: Bogeymin is Ready for Testing

Although there are a few plugins left to create, I'll be starting the test phase of Bogeymin this week. I am also lining up beta testers for some initial installs of the software. This is a private test and the participants have already been lined up. But if you'd like to know when the product is ready for release, sign up here.