IntraWeb Archive

XI: Content Root

XI: Content Root

Originally the content root directory was to be the application directory so that we could auto map iw forms. However Delphi still has very limited options regarding namespaces, and units cannot have duplicate names even when they exist in different directories.

Because of this, the default content root directory is now a wwwroot subdirectory of the application directory. This also makes protecting files such as databases, the executable, and other private files easier. The content directory can be altered by setting the ContentDir property of the ServerController in its constructor or OnCreate.