[Solar-talk] Change to Solar_Controller_Page::fetch()

Rodrigo Moraes rodrigo.moraes at gmail.com
Tue Jan 2 20:46:27 PST 2007


On 1/2/07, Travis Swicegood wrote:
> I'm thinking it'd be useful for _postRun() to run even if _forward()
> throws an exception.  That gives you the ability to recover to something
> more useful than an exception at the app level.  This is especially
> important if you treat _preRun()/_postRun() like setup()/teardown() in
> unit tests where they do something that alters the environment or just
> tracks it.

Hi,
The only thing I would change would be: refactor it to, instead of
calling specific hook methods, post a message to a notification
center, and apps interested in notifications would subscribe to them.
This is not directly related to your idea and actually this is another
subject, but I can't ever resist (sorry!). :-)

That said, I think that the $_exceptionThrown idea is pretty useful.

rodrigo


More information about the solar-talk mailing list