/// <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 ); }
public Template getTemplateByAction( MethodInfo actionMethod ) { ControllerViewsPath x = new ControllerViewsPath(); // TODO 检查action是否属于controller,如果是继承来的,则获取基类 x.setController( this._controller ); x.setMethod( actionMethod ); return getTemplateByPath( x ); }
/// <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 ); }
public Template getTemplateByAction(MethodInfo actionMethod) { ControllerViewsPath x = new ControllerViewsPath(); // TODO 检查action是否属于controller,如果是继承来的,则获取基类 x.setController(this._controller); x.setMethod(actionMethod); return(getTemplateByPath(x)); }
/// <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)); }