core/base/Widget.php
public function getViewPath()
    {
        if (!$this->useAppViewPath) {
            return parent::getViewPath();
        }
        
        // get reflection
        $class = new ReflectionClass($this);
        // get path with alias
        return '@app/views/widgets/' . Inflector::camel2id($class->getShortName());
    }
public function getViewPath()
    {
        if (!$this->useAppViewPath) {
            return parent::getViewPath();
        }
        
        // get reflection
        $class = new ReflectionClass($this);
        // get path with alias
        return '@app/views/widgets/' . Inflector::camel2id($class->getShortName());
    }
public function getViewPath ( ) { if ( ! $ this -> useAppViewPath ) { return parent :: getViewPath ( ) ; } // get reflection $ class = new ReflectionClass ( $ this ) ; // get path with alias return '@app/views/widgets/' . Inflector :: camel2id ( $ class -> getShortName ( ) ) ; }
Find view paths in application folder.

@inheritDoc

@see \yii\base\Widget::getViewPath()
@return string
Find view paths in application folder .