How do you define paths in application?
- by Hemaulo
I'm using global constants, like this:
/project
/application
bootstrap.php
/public
index.php
index.php
defines PUBLIC_PATH and APPLICATION_PATH
calls APPLICATION_PATH . bootstrap.php
bootstrap.php
defines LIBRARY_PATH, MODULES_PATH, TEMP_PATH, CONFIG_PATH, ...
does real work
Also i want to ask if there is better way to do this?