public function getViewPath() { $class = new ReflectionClass($this); return dirname($class->getFileName()) . DIRECTORY_SEPARATOR . 'views'; }
/** * The method returns the view path for this widget if set while calling widget. */ public function getViewPath() { if (isset($this->templateDir)) { return $this->templateDir; } return parent::getViewPath(); }