protected function ModuleTemplates($module)
    {
        $folder = PathUtil::ModuleCustomTemplatesFolder($module);
        if (!Folder::Exists($folder))
        {
            return array();
        }
        $templates = Folder::GetFiles($folder);
        $result = array();
        foreach ($templates as $template)
        {
            if (Path::Extension($template) == 'phtml')
            {
                $result[] = Path::RemoveExtension($template);
            }
        }
        return $result;
    }
protected function ModuleTemplates($module)
    {
        $folder = PathUtil::ModuleCustomTemplatesFolder($module);
        if (!Folder::Exists($folder))
        {
            return array();
        }
        $templates = Folder::GetFiles($folder);
        $result = array();
        foreach ($templates as $template)
        {
            if (Path::Extension($template) == 'phtml')
            {
                $result[] = Path::RemoveExtension($template);
            }
        }
        return $result;
    }
protected function ModuleTemplates ( $ module ) { $ folder = PathUtil :: ModuleCustomTemplatesFolder ( $ module ) ; if ( ! Folder :: Exists ( $ folder ) ) { return array ( ) ; } $ templates = Folder :: GetFiles ( $ folder ) ; $ result = array ( ) ; foreach ( $ templates as $ template ) { if ( Path :: Extension ( $ template ) == 'phtml' ) { $ result [ ] = Path :: RemoveExtension ( $ template ) ; } } return $ result ; }
Gets the module templates
@param FrontendModule $module The frontend module
@return string[] Returns the template files
Gets the module templates