hi ,first thanks for this great effort on phpmaker. I think changing some constant in the config file to be a global variables will be more helpful to be easily overrided,eg the email credentials like email,host,port,username,password. this will enable programmers like me to change these values dynamically instead of workarounds and template modification.
thanks
Changing some constants to global variables
-
- User
- Posts: 53
Changing some constants to global variables
-
- User
- Posts: 11721
You may override the constant value by setting up the third parameter become FALSE. For example:
// This is the original constant value in the "ewcfg*.php" file:
define("EW_EXPORT_ALL", TRUE, TRUE); // Export all records
// Override it using "Global Code" server event under "Server Events" -> "Global" -> "All Pages":
define("EW_EXPORT_ALL", FALSE, FALSE); // Change the constant value using the second argument, and make sure change the third argument become FALSE to override the original constant value