<?php require_once "../ChunCore/ChunConfigurator/ChunIncluder.php"; ChunIncluder::includeViewManagerModuls(); class ViewManagerBase { protected $views_paths = ""; protected $view_controller_name = ""; protected $view_folder = ""; protected $view_name = ""; protected $reques_url = ""; protected $view_path = ""; protected $url_affter_parse = ""; protected $url_parts = null; public static $view_manager = null; public static $MODELS = null; function __construct($_view_controller_name) { $this->view_controller_name = $_view_controller_name; $this->parseControlName(); $this->renderPage(); } public static function initRender($_view_controller_name) { ViewManagerBase::$view_manager = new ViewManagerBase($_view_controller_name); } private function parseControlName() { $parse_index = strpos($this->view_controller_name, CONTROL_NAME_SECOND_PART); $this->view_name = substr($this->view_controller_name, 0, $parse_index); $this->parseViewName();