Example #1
0
 /**
  * Helper method to pass the views directory to the controller.
  *
  * @param GetViewsDirEvent $event
  *
  * @return string the path to the views directory
  *
  */
 public function getViewDirCallback(GetViewsDirEvent $event)
 {
     $event->setViewsDir(VIEWS_DIR);
 }
Example #2
0
 /**
  * Helper method to pass the views directory to the controller.
  *
  * @param GetViewsDirEvent $event
  *
  * @return string the path to the views directory
  */
 public function getViewDirCallback(GetViewsDirEvent $event)
 {
     $event->setViewsDir(VIEWS_DIR);
     echo PHP_EOL . 'Loading View Directory' . PHP_EOL;
 }