Example #1
0
 public function __construct()
 {
     parent::__construct();
     //		$this->directory = $this->app->router()->getCurrentRoute()->getName();
     $this->directory = 'news';
     $this->entityManager = new EntityManager($this->directory);
 }
Example #2
0
 public function __construct(Application $app)
 {
     parent::__construct($app);
     if (is_null(static::$entity)) {
         throw new \Exception('Entity was not set.');
     }
     if (is_null(static::$form)) {
         throw new \Exception('Form was not set.');
     }
     if (!is_array(static::$roles)) {
         throw new \Exception('Roles was not set.');
     }
 }
 function __construct()
 {
     parent::__construct();
 }
Example #4
0
 public function __construct()
 {
     parent::__construct();
     $this->connect = Database::getConnect('master');
 }