SEARCH:
Previous: objPage Next: File_Exists_IncPath

objPageMain

string PHP_Class
echos HTML


This routine will accept the name of a class, instantiates an object, and call's the object's "main" method. In Andromeda, the "main" method always outputs HTML.

This is a handy way to "redirect" from one page to another. If execution has passed to Page1.main, and the code determines that execution must go to Page2.main, then you can issue

objPageMain('Page2');

This routine will not wipe out HTML that has been output before it is called. To avoid the HTML from one page appearing on the next, be sure to call this routine before HTML has been generated.

Previous: objPage Next: File_Exists_IncPath