public function getViewPath()
    {
        // Cache mechanism
        if (self::$_viewPath) {
            return self::$_viewPath;
        }
        
        // Called widget filepath
        $reflectionClass = new ReflectionClass($this);
        $widgetPath = dirname($reflectionClass->getFileName());
        // For Codeigniter view which doesn't support absolute path
        $relativePath = str_replace(APPPATH, '', $widgetPath);

        // Real relative view path for Codeigniter
        return self::$_viewPath = "../{$relativePath}/views/";
    }
public function getViewPath()
    {
        // Cache mechanism
        if (self::$_viewPath) {
            return self::$_viewPath;
        }
        
        // Called widget filepath
        $reflectionClass = new ReflectionClass($this);
        $widgetPath = dirname($reflectionClass->getFileName());
        // For Codeigniter view which doesn't support absolute path
        $relativePath = str_replace(APPPATH, '', $widgetPath);

        // Real relative view path for Codeigniter
        return self::$_viewPath = "../{$relativePath}/views/";
    }
public function getViewPath ( ) { // Cache mechanism
 if ( self :: $ _viewPath ) { return self :: $ _viewPath ; } // Called widget filepath
 $ reflectionClass = new ReflectionClass ( $ this ) ; $ widgetPath = dirname ( $ reflectionClass -> getFileName ( ) ) ; // For Codeigniter view which doesn't support absolute path
 $ relativePath = str_replace ( APPPATH , '' , $ widgetPath ) ; // Real relative view path for Codeigniter
 return self :: $ _viewPath = "../{$relativePath}/views/" ; }
Returns the directory containing the view files for this widget.
The default implementation returns the 'views' subdirectory under the directory containing the widget class file.

@return string the directory containing the view files for this widget.
Returns the directory containing the view files for this widget . The default implementation returns the views subdirectory under the directory containing the widget class file .