Example #1
0
 public function __construct(\Application $application)
 {
     parent::__construct($application);
     $this->model = new model\SettingModel();
     $this->view = new view\Setting($this->application, $this->model);
     $this->AdminController = new controller\AdminController($application, $this->model, $this->view);
 }
Example #2
0
 public function __construct(\Application $application)
 {
     parent::__construct($application);
     $this->repository = PDORepositoryFactory::get("\\plugin\\Slider\\model\\Slide", \Database::GetConnection());
     $this->AdminController = new controller\AdminController($this->application, $this->repository);
     $this->PublicController = new controller\PublicController($this->application, $this->repository);
 }
Example #3
0
 function Init($controller, $method = "Index", ...$params)
 {
     $parent = parent::Init($controller, $method, ...$params);
     if ($parent == false && $this->HookRootAccess($method)) {
         $parent = $this->PublicController->ViewCMS(strtolower($method), ...$params);
     }
     return $parent;
 }
Example #4
0
 public function __construct(\Application $application)
 {
     parent::__construct($application);
     $this->model = new model\PluginHandlerModel();
     $this->AdminController = new controller\AdminController($application, $this->model);
 }
Example #5
0
 public function __construct(\Application $application)
 {
     parent::__construct($application);
 }
Example #6
0
 public function __construct(\Application $application)
 {
     parent::__construct($application);
     $this->view = new view\Admin($this->application);
 }
Example #7
0
 public function __construct(\Application $application)
 {
     parent::__construct($application);
     $this->file = APP_ROOT . 'public' . DIRECTORY_SEPARATOR . 'sitemap.xml';
 }