예제 #1
0
 /**
  * Collect views
  *
  * @param ViewCollector $view
  */
 public function views(ViewCollector $view)
 {
     $view->handle('install.page.{content?}', function ($content) {
         return realpath(__DIR__ . '/../views/' . $content . '.php');
     })->where('content', 'welcome|finish|requirements|account|database|timezone|install')->implicit('content', 'page');
     $view->handle('install.jumbotron', function () {
         return realpath(__DIR__ . '/../views/jumbotron.php');
     });
 }
예제 #2
0
 /**
  * Collect views
  *
  * @param ViewCollector $view
  */
 public function views(ViewCollector $view)
 {
     $view->handle('welcome', function () {
         return realpath(__DIR__ . '/../views/welcome.php');
     });
 }
예제 #3
0
 public function views(ViewCollector $view)
 {
     $view->handle('manager.{content}', Callback::class . '::viewContent')->where('content', 'page|setup|menu|login|create');
     $view->handle('manager.module.{content}', Callback::class . '::viewModuleContent')->where('content', 'info|list|manage');
 }