Пример #1
0
 public function __construct()
 {
     Config::set('site.theme', null);
     $this->makeMenu();
     View::share('pageTitle', '');
     Breadcrumbs::removeAll();
     Breadcrumbs::setCssClasses('breadcrumb');
     Breadcrumbs::setDivider('');
     Breadcrumbs::addCrumb('Visão Geral', URL::to('admin'));
 }
Пример #2
0
 public function __construct()
 {
     if (Config::get('site.theme')) {
         Theme::init(Config::get('site.theme'));
     }
     $app = app();
     $viewFinder = $app['view.finder'];
     Breadcrumbs::setListElement('ol');
     Breadcrumbs::setCssClasses('breadcrumb');
     Breadcrumbs::addCrumb('Início', URL::to('/'));
     Breadcrumbs::setDivider('');
     View::share('breadcrumbVisible', true);
     foreach ($app['modules']->modules() as $name => $module) {
         if ($module->enabled()) {
             foreach ($viewFinder->getPaths() as $path) {
                 $viewFinder->prependNamespace($name, $path . '/modules/' . $name);
             }
         }
     }
 }