Example #1
0
 /**
  * Stops the system in it tracks and renders whatever Views have been added to
  * the queue.
  *
  * @todo If any calls to Core::halt() occur within the rendering code or
  * templates then recursion will appear. How do we get around that? Set a
  * static var to ensure this is called only once?
  *
  * @return void
  */
 public static function halt()
 {
     // Render and display the GlobalView (if not already done so)
     $globalView = View::getGlobalView();
     echo $globalView->render();
     // Exit
     self::shutdown();
 }