Exemplo n.º 1
0
 /// <summary>
 /// 根据文件名称获取模板对象,文件名必须从视图 view 的根目录算起
 /// </summary>
 /// <param name="fileName"></param>
 /// <returns></returns>
 public Template getTemplateByFileName( String fileName )
 {
     FileViewsPath x = new FileViewsPath();
     x.setController( this._controller );
     x.setFileName( fileName );
     return getTemplateByPath( x );
 }
Exemplo n.º 2
0
        /// <summary>
        /// 根据文件名称获取模板对象,文件名必须从视图 view 的根目录算起
        /// </summary>
        /// <param name="fileName"></param>
        /// <returns></returns>
        public Template getTemplateByFileName(String fileName)
        {
            FileViewsPath x = new FileViewsPath();

            x.setController(this._controller);
            x.setFileName(fileName);
            return(getTemplateByPath(x));
        }