public function __construct()
 {
     date_default_timezone_set('Asia/Jakarta');
     Former::framework($this->form_framework);
     $this->beforeFilter('auth', array('on' => 'get', 'only' => array('getIndex', 'getAdd', 'getEdit')));
     $this->backlink = strtolower($this->controller_name);
     Breadcrumbs::setDivider('');
     Breadcrumbs::setCssClasses('breadcrumb');
     Breadcrumbs::addCrumb('Home', URL::to('/'));
     Logger::access();
 }
示例#2
0
 /**
  * Bootstrap any application services.
  *
  * @return void
  */
 public function boot()
 {
     \Breadcrumbs::setCssClasses('breadcrumb');
     \Breadcrumbs::setDivider('');
     \Breadcrumbs::setListElement('ol');
 }