function getPath() { $name = $this->getName() ; if ($this->path) { return $this->path ; }elseif (parent::getPath()) { $this->path = parent::getPath() ; return $this->path ; }else{ // If path not set explicity: calc it $prefix = ROOT ; if ($plg = $this->getPlugin()){ $plgName = $this->getPlugin()->getSystemName(); $prefix = PLUGIN_PATH."/".$plgName ; } $this->path = $prefix ."/application/widgets/$name/index.php" ; } return $this->path ; }