Quantcast
Channel: Atozed Forums - All Forums
Viewing all articles
Browse latest Browse all 282

AddRootHandler doesn't work in IW 16.

$
0
0
Hello,

Why in IW16 doesn't work any more AddRootHandler??? It just closes the application when reach to this point.


procedure TIWServerController.IWServerControllerBaseConfig(Sender: TObject);
var FormHandler: TContentForm;
begin
  Self.RewriteURL := '/';

  TIWMimeTypes.RegisterType('.html', MIME_HTML, True);

  RegisterContentType('application/json');

  FormHandler := TContentForm.Create(TIWMainform);
  FormHandler.CanStartSession := true;
  FormHandler.RequiresSessionStart := true;
  THandlers.AddRootHandler('', '/', FormHandler);

  FormHandler := TContentForm.Create(TIWCheckout);
  FormHandler.CanStartSession := false;
  FormHandler.RequiresSessionStart := false;
  THandlers.Add('', '/checkout', FormHandler);

Viewing all articles
Browse latest Browse all 282

Trending Articles