예제 #1
0
 public function __construct()
 {
     parent::__construct();
     Config::set('auth.driver', 'adminauth');
     Asset::add('bootstrap', 'bundles/adminify/css/bootstrap.min.css');
     Asset::add('style', 'bundles/adminify/css/style.css');
     Asset::add('jquery', 'http://code.jquery.com/jquery-latest.min.js');
     Asset::add('bootstrapjs', 'bundles/adminify/js/bootstrap.min.js');
     $this->layout->name = Config::get('adminify::settings.name');
     $this->layout->models = Adminify\Libraries\Helpers::getModels();
     $this->filter('before', 'auth');
 }
예제 #2
0
 public function get_index()
 {
     $models = Adminify\Libraries\Helpers::getModels();
     $this->layout->title = 'Dashboard';
     $this->layout->nest('content', 'adminify::dashboard.index', array('models' => $models));
 }