Provide useful helpers to be used in a layout view or in the wizards steps views.
Inheritance: HtmlHelper
コード例 #1
0
		private void SetUpWizardHelper(IEngineContext engineContext, IController controller, IControllerContext controllerContext)
		{
			if (controller == null) return;

			WizardHelper helper = new WizardHelper();

			helper.SetContext(engineContext);
			helper.SetController(controller, controllerContext);

			controllerContext.Helpers.Add(helper);
		}
コード例 #2
0
		private void SetUpWizardHelper(Controller controller)
		{
			if (controller == null) return;

			WizardHelper helper = new WizardHelper();

			helper.SetController(controller);

			controller.Helpers["wizardhelper"] = helper;
		}