public function getBasePath()
    {
        if (!$this->basePath) {
            $class = new \ReflectionClass($this);
            $this->basePath = substr(dirname($class->getFileName()), strlen(getcwd()) + 1);

            // TODO 改为默认
            if (substr($class->getName(), 0, 8) == 'Miaoxing') {
                $this->basePath = dirname($this->basePath);
            }
        }

        return $this->basePath;
    }
public function getBasePath()
    {
        if (!$this->basePath) {
            $class = new \ReflectionClass($this);
            $this->basePath = substr(dirname($class->getFileName()), strlen(getcwd()) + 1);

            // TODO 改为默认
            if (substr($class->getName(), 0, 8) == 'Miaoxing') {
                $this->basePath = dirname($this->basePath);
            }
        }

        return $this->basePath;
    }
public function getBasePath ( ) { if ( ! $ this -> basePath ) { $ class = new \ ReflectionClass ( $ this ) ; $ this -> basePath = substr ( dirname ( $ class -> getFileName ( ) ) , strlen ( getcwd ( ) ) + 1 ) ; // TODO 改为默认 if ( substr ( $ class -> getName ( ) , 0 , 8 ) == 'Miaoxing' ) { $ this -> basePath = dirname ( $ this -> basePath ) ; } } return $ this -> basePath ; }
Returns the web path for this plugin

@return string
Returns the web path for this plugin