I am currently building a dynamic page (with custom url slug)
helloword is my custom slug. the slug is retrieved from db.
If user go to http://www.mydomain.com/place/**hellowords**, it should be an 404 page.
In this page, i am querying my db for certain objects.
If the db query does not return me an object, i will throw an exception and redirect user to the 404 page.
If this the way you guys will approach this as well? Looking for some advices and insights.
In Phalcon, is there a way we can catch db exception? I am using mongodb. Can't manage to catch exception.