Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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;
 }
Exemplo n.º 4
0
 public function __construct(\Application $application)
 {
     parent::__construct($application);
     $this->model = new model\PluginHandlerModel();
     $this->AdminController = new controller\AdminController($application, $this->model);
 }
Exemplo n.º 5
0
 public function __construct(\Application $application)
 {
     parent::__construct($application);
 }
Exemplo n.º 6
0
 public function __construct(\Application $application)
 {
     parent::__construct($application);
     $this->view = new view\Admin($this->application);
 }
Exemplo n.º 7
0
 public function __construct(\Application $application)
 {
     parent::__construct($application);
     $this->file = APP_ROOT . 'public' . DIRECTORY_SEPARATOR . 'sitemap.xml';
 }