I'm currently building a CMS using phalcon, and so far I haven't had any issues until now. Currently, I'd like any urls that do not have an associated controller to load the "page" controller I have, which will attempt to find a database-stored page and produce the 404 if one is not found. I've looked at the router documentation about setting a default controller, but that doesn't seem to work, as it always throws the exception error that the controller couldn't be loaded.
I assume what I would need to do is create an event handler for the exception messages, but the documentation has got my eyes crossing, since I'm not understanding how to implement a listener to handle the exception messages.
Any ideas what I should be doing to accomplish this?