protected static void SetUpHelpers(IEngineContext engineContext, IController controller, IControllerContext controllerContext) { var formHelper = new ARFormHelper(); formHelper.SetContext(engineContext); formHelper.SetController(controller, controllerContext); var presentationHelper = new PresentationHelper(); presentationHelper.SetContext(engineContext); presentationHelper.SetController(controller, controllerContext); var paginationHelper = new PaginationHelper(); paginationHelper.SetContext(engineContext); paginationHelper.SetController(controller, controllerContext); var scriptaculous = new ScriptaculousHelper(); scriptaculous.SetContext(engineContext); scriptaculous.SetController(controller, controllerContext); var ajaxHelper = new AjaxHelper(); ajaxHelper.SetContext(engineContext); ajaxHelper.SetController(controller, controllerContext); controllerContext.Helpers["Scriptaculous"] = scriptaculous; controllerContext.Helpers["Ajax"] = ajaxHelper; controllerContext.Helpers["Form"] = formHelper; controllerContext.Helpers["PresentationHelper"] = presentationHelper; controllerContext.Helpers["PaginationHelper"] = paginationHelper; }