Log In    |    Knowledge Base    |    4D Home
Tech Tip: Compiler directives and static web pages
Published On: July 9, 1999
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

4D version 6.5 allows you to create databases that can serve static web pages using a new non-contextual mode. When using this new mode of serving html pages, you need to create a method called "COMPILER_WEB". According to the documentation, "this method must contain all the typing and/or initialization directives..."

This tells us two things:

1. The variables should be process variables.
2. You should be careful when designing your web pages that you don't use different variable types of the same name within your different web pages.