Ghost: Page Controller

Page Controller provides a standardised Controller class for object-oriented page callbacks in Drupal 7, a bit like Drupal 8 page controllers.

Hook_menu accepts any string for the page callback. While passing a standard object or an array suitable for use in call_user_func() won't work here, a static object callback will. We leverage this to provide a standard controller which can be reused for object oriented page callbacks.

Usage

then, create a new page controller at