public function setAppRoot(array $config)
    {
        $this->app_name   = $config['app_name'];
        $this->app_dir    = rtrim($config['app_dir'], '/');
        $this->debug      = $config['debug'];
        $this->config_dir = $config['config_dir'];
        $this->view_dir   = $config['view_dir'];
        $this->vars_dir   = $config['vars_dir'];
        return $this;
    }