I have index.php that will require two files, classes.inc and formvalidation.inc
To put into scope:
1) Every PHP script will require formvalidation.inc
2) NOT EVERY PHP script will require classes.inc
Classes.inc has a class, Accepter, whose constructor will need to run a function called createErrorMsgCollection(). This function exists as a standalone function within formvalidation.inc which also contains classes.
When I try to run index.php I get this fatal error:
Fatal error: Call to undefined function: createerrormsgcollection() in ../include/classes.inc on line 35
how, then, can a class constructor call a standalone function from another file? I am stumped.
Thanx
Phil