uses MVCFramework.Controllers.Register, procedure TWebModule1.WebModuleCreate(Sender: TObject); begin FEngine := TMVCEngine.Create(Self); /// Add your registered controllers to engine. /// Only registered controls such as "MyServerName" will be added TControllersRegister.Instance.AddControllersInEngine(FEngine, 'MyServerName'); end;
下面是控制器
implementation uses MVCFramework.Controllers.Register; initialization TControllersRegister.Instance.RegisterController(TMyController1, 'MyServerName');
标签:控制器,MVCFramework,MyServerName,registered,Instance,自动,注册,FEngine From: https://www.cnblogs.com/redhat588/p/17314814.html