Zen Follower
- Join Date:
- Jun 2012
- Posts:
- 481
- Plugin Contributions:
- 0
Where and how on new define approach
I'm completely lost on where to put defines and how to override core defines after reading material on this site. If someone could answer the following questions, I might be able to make sense of it. This is driven in part because I read in zen cart 3.0, all defines must be of the lang. style (if I understood it correctly) and as I migrate to zc 2.0 and above, I want to do the defines correctly to minimize pain later.
- where is the recommended place and filename for overriding core defines?
- Where is the recommended place and filename for custom defines applicable to a specific page?
- Where is the recommended place and filename for defines needed for functions, observers, etc. that may be applicable to multiple pages?
- Is recommended practice to include all defines from a core defines file in a override file or just the defines being overridden?
- How should current array defines be handled, including array defines that are associative arrays? (Ex: define('CONSTANT_NAME', array(key1=>value1, key2=>value2));
Thank you!
Dave
zc1.5.8a, php 8.2, mysql 8.0, only one language needed - English