public function setViewPath($path)
    {
        $len = strlen($path) - 1;
        if ($path[$len] == '/') {
            $path = substr($path, 0, -1);
        }
        $realpath = realpath($path);;
        $this->_path = $realpath === false ? $path : $realpath;
    }