Example #1
0
 /// <summary>
 /// 根据 action 名称获取模板对象
 /// </summary>
 /// <param name="action"></param>
 /// <returns></returns>
 public Template getTemplateByAction( String action )
 {
     ControllerViewsPath x = new ControllerViewsPath();
     x.setController( this._controller );
     x.setAction( action );
     return getTemplateByPath( x );
 }
Example #2
0
        public Template getTemplateByAction( MethodInfo actionMethod )
        {
            ControllerViewsPath x = new ControllerViewsPath();

            // TODO 检查action是否属于controller,如果是继承来的,则获取基类
            x.setController( this._controller );
            x.setMethod( actionMethod );

            return getTemplateByPath( x );
        }
Example #3
0
        /// <summary>
        /// 根据 action 名称获取模板对象
        /// </summary>
        /// <param name="action"></param>
        /// <returns></returns>
        public Template getTemplateByAction( String action )
        {
            ControllerViewsPath x = new ControllerViewsPath();

            // TODO 检查action是否属于controller,如果是继承来的,则获取基类
            x.setController( this._controller );
            x.setAction( action );

            return getTemplateByPath( x );
        }
Example #4
0
        public Template getTemplateByAction(MethodInfo actionMethod)
        {
            ControllerViewsPath x = new ControllerViewsPath();

            // TODO 检查action是否属于controller,如果是继承来的,则获取基类
            x.setController(this._controller);
            x.setMethod(actionMethod);

            return(getTemplateByPath(x));
        }
Example #5
0
        /// <summary>
        /// 根据 action 名称获取模板对象
        /// </summary>
        /// <param name="action"></param>
        /// <returns></returns>
        public Template getTemplateByAction(String action)
        {
            ControllerViewsPath x = new ControllerViewsPath();

            // TODO 检查action是否属于controller,如果是继承来的,则获取基类
            x.setController(this._controller);
            x.setAction(action);

            return(getTemplateByPath(x));
        }