public function getModelsPathList()
    {
        if ($this->_modelsPath === null) {
            $this->_modelsPath = $this->getBasePath() . DIRECTORY_SEPARATOR . static::$modelsSubdir; // default
            $pathList = $this->getBasePathList();
            foreach ($pathList as $path) {
                $resultPath = $path . DIRECTORY_SEPARATOR . static::$modelsSubdir;
                if (is_dir($resultPath)) {
                    $this->_modelsPath = $resultPath;
                    break;
                }
            }
        }
        return $this->_modelsPath;
    }
public function getModelsPathList()
    {
        if ($this->_modelsPath === null) {
            $this->_modelsPath = $this->getBasePath() . DIRECTORY_SEPARATOR . static::$modelsSubdir; // default
            $pathList = $this->getBasePathList();
            foreach ($pathList as $path) {
                $resultPath = $path . DIRECTORY_SEPARATOR . static::$modelsSubdir;
                if (is_dir($resultPath)) {
                    $this->_modelsPath = $resultPath;
                    break;
                }
            }
        }
        return $this->_modelsPath;
    }
public function getModelsPathList ( ) { if ( $ this -> _modelsPath === null ) { $ this -> _modelsPath = $ this -> getBasePath ( ) . DIRECTORY_SEPARATOR . static :: $ modelsSubdir ; // default $ pathList = $ this -> getBasePathList ( ) ; foreach ( $ pathList as $ path ) { $ resultPath = $ path . DIRECTORY_SEPARATOR . static :: $ modelsSubdir ; if ( is_dir ( $ resultPath ) ) { $ this -> _modelsPath = $ resultPath ; break ; } } } return $ this -> _modelsPath ; }
Will find first exists models directory from current and inheritance modules.
@return string directory of models files. Defaults to "[[basePath]]/models".
Will find first exists models directory from current and inheritance modules .