public static function viewFilename($view, $dirs = null, $extension = null)
    {
        $dirs = self::path($dirs ?: self::get('atomik.dirs.views'));
        $extension = $extension ?: ltrim(self::get('app.views.file_extension'), '.');
        if (($filename = self::findFile("$view.$extension", $dirs)) === false) {
            return self::findFile("$view/index.$extension", $dirs);
        }
        return $filename;
    }
public static function viewFilename($view, $dirs = null, $extension = null)
    {
        $dirs = self::path($dirs ?: self::get('atomik.dirs.views'));
        $extension = $extension ?: ltrim(self::get('app.views.file_extension'), '.');
        if (($filename = self::findFile("$view.$extension", $dirs)) === false) {
            return self::findFile("$view/index.$extension", $dirs);
        }
        return $filename;
    }
public static function viewFilename ( $ view , $ dirs = null , $ extension = null ) { $ dirs = self :: path ( $ dirs ? : self :: get ( 'atomik.dirs.views' ) ) ; $ extension = $ extension ? : ltrim ( self :: get ( 'app.views.file_extension' ) , '.' ) ; if ( ( $ filename = self :: findFile ( "$view.$extension" , $ dirs ) ) === false ) { return self :: findFile ( "$view/index.$extension" , $ dirs ) ; } return $ filename ; }
Returns a view's filename

@see Atomik::path()
@param string $view View name
@param array $dirs Directories where views are stored (default is using configuration)
@param string $extension View's file extension
@return string
Returns a view s filename