Hello, guys, I'm having problems with torophp routing.
Currently, the 404 pages mounted on torophp are:
ToroHook::add("404", function() { echo "Not found";});
The problem is:
1. I would like to customize the 404 page with my site template consistent, that is, how do I operate this function assigned to my page template?
2. How do I guide the user to 404 pages when the user does not find the information?
Thank you.
torophp GITHUB: Link description
Reply content:
Hello, guys, I'm having problems with torophp routing.
Currently, the 404 pages mounted on torophp are:
ToroHook::add("404", function() { echo "Not found";});
The problem is:
1. I would like to customize the 404 page with my site template consistent, that is, how do I operate this function assigned to my page template?
2. How do I guide the user to 404 pages when the user does not find the information?
Thank you.
torophp GITHUB: Link description
In this hook send a header,redirect to 404 this page just fine
Header ("Location:/404.html");