Exemple #1
0
        protected void Application_Start()
        {
            RouteTable.Routes.MapRoute(
                name: "Default",
                url: "demo/{controller}/{action}/{id}",
                defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
                );

            cmsHost = CmsContext.RegisterHost();

            AreaRegistration.RegisterAllAreas();

            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);

            RouteConfig.RegisterRoutes(RouteTable.Routes);

            cmsHost.OnApplicationStart(this);



            AddPageEvents();
            AddSitemapEvents();
            AddRedirectEvents();
            AddTagEvents();
            AddCategoryEvents();
            AddWidgetEvents();
            AddBlogPostEvents();
            AddBlogAuthorEvents();
            AddMediaManagerEvents();
            AddUsersEvents();
        }
Exemple #2
0
        protected void Application_Start()
        {
            cmsHost = CmsContext.RegisterHost();
            //            RouteConfig.RegisterRoutes(RouteTable.Routes);

            cmsHost.OnApplicationStart(this);
        }
Exemple #3
0
        protected void Application_Start()
        {
            cmsHost = CmsContext.RegisterHost();

            AreaRegistration.RegisterAllAreas();

            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);

            RouteConfig.RegisterRoutes(RouteTable.Routes);

            cmsHost.OnApplicationStart(this);

            AddCategoryEvents();
            AddContentEvents();
            AddLayoutEvents();
            AddPageEvents();
            AddRedirectEvents();
            AddSitemapEvents();
            AddTagEvents();
            AddWidgetEvents();
            AddLanguageEvents();
            AddBlogPostEvents();
            AddBlogAuthorEvents();
            AddMediaManagerEvents();
            AddUsersEvents();
            AddNewsletterEvents();
        }
 protected void Application_Start()
 {
     cmsHost = CmsContext.RegisterHost();
     AreaRegistration.RegisterAllAreas();
     WebApiConfig.Register(GlobalConfiguration.Configuration);
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     cmsHost.OnApplicationStart(this);
 }
Exemple #5
0
        protected void Application_Start()
        {
            cmsHost = CmsContext.RegisterHost();

            /* DO NOT FORGET TO REMOVE DEFAULT ROUTE REGISTRATION!
             * FOLLOWING SOURCE CODE SHOULD BE REMOVED:
             *
             * routes.MapRoute(
             *          name: "Default",
             *          url: "{controller}/{action}/{id}",
             *          defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
             *      );
             */

            // [YOUR CODE]

            cmsHost.OnApplicationStart(this);
            //AreaRegistration.RegisterAllAreas();
            //FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            //RouteConfig.RegisterRoutes(RouteTable.Routes);
            //BundleConfig.RegisterBundles(BundleTable.Bundles);
            AddCategoryEvents();
            AddContentEvents();
            AddLayoutEvents();
            AddPageEvents();
            AddRedirectEvents();
            AddSitemapEvents();
            AddTagEvents();
            AddWidgetEvents();
            AddLanguageEvents();
            AddBlogPostEvents();
            AddBlogAuthorEvents();
            AddMediaManagerEvents();
            AddUsersEvents();
            AddNewsletterEvents();
        }