Hooks reference: action_view_pagenotfound

This hook is called by Action:view when a page is not found.
Then, if user has create permission, he will be redirected to Action:create. Otherwise, user will get a 404 error.

Args details

  • $oPage (Instance of class AnwPage) : The requested page (which doesn't exist)

Example

  1. function hook_action_view_pagenotfound($oPage)
  2. {
  3. //your code here...
  4. }
  • en
Last edited on 04/05/2009 14:23:31
Powered by Anwiki • 0.04 sec • 2.03 MB