예제 #1
0
 /**
  * Method automatically invoked before the current Action, stopping the flight
  * when it return false. This Method is supposed to be overriden for using it.
  */
 protected function before()
 {
     // Run the Hooks associated to Views.
     $hooks = Hooks::get();
     foreach (array('afterBody', 'css', 'js') as $hook) {
         $result = $hooks->run($hook);
         // Share the result into Views.
         View::share($hook, $result);
     }
     // Return true to continue the processing.
     return true;
 }