Пример #1
0
 public function __construct($controller)
 {
     $this->controller = $controller;
     $this->core = str_replace('Control', '', get_class($controller));
     $this->user = new UserService();
     $this->view = new ViewsService($this->user);
     $this->view->response =& $this->response;
     $this->model = Routing::getModel($this->core);
     $this->requestService = new Request();
     $this->get = $this->requestService->getGet();
     $this->post = $this->requestService->getPost();
     $this->request = $this->requestService->getRequest();
     $this->response = Routing::callAction($this->controller);
     $this->view->render = Routing::renderControl($this->controller);
 }