public function getViewFileName($extension)
    {
        $className = get_class($this);
    
        if (preg_match('/\\\\([\w]+)$/', $className, $matches)) {
            $className = $matches[1];
        }
    
        return $className.'.'.$extension;
    }
public function getViewFileName($extension)
    {
        $className = get_class($this);
    
        if (preg_match('/\\\\([\w]+)$/', $className, $matches)) {
            $className = $matches[1];
        }
    
        return $className.'.'.$extension;
    }
public function getViewFileName ( $ extension ) { $ className = get_class ( $ this ) ; if ( preg_match ( '/\\\\([\w]+)$/' , $ className , $ matches ) ) { $ className = $ matches [ 1 ] ; } return $ className . '.' . $ extension ; }
Returns the name of the php file to be rendered.

@return string The name of the php file (example.php)
Returns the name of the php file to be rendered .