コード例 #1
0
ファイル: MvcViews.cs プロジェクト: NOTHEN/wojilu
 /// <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 );
 }
コード例 #2
0
ファイル: MvcViews.cs プロジェクト: 2014AmethystCat/wojilu
        public Template getTemplateByAction( MethodInfo actionMethod )
        {
            ControllerViewsPath x = new ControllerViewsPath();

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

            return getTemplateByPath( x );
        }
コード例 #3
0
ファイル: MvcViews.cs プロジェクト: 2014AmethystCat/wojilu
        /// <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 );
        }
コード例 #4
0
        public Template getTemplateByAction(MethodInfo actionMethod)
        {
            ControllerViewsPath x = new ControllerViewsPath();

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

            return(getTemplateByPath(x));
        }
コード例 #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));
        }