1.1 Default Constants
As you can see in [[installation guide|1. Install]], we have created on the begin of the
index.php, main file from the system, two constants that is:
Both was defined in the Virtual Host as you can see below and was defined to inform us about the execution environment and the showing of errors from PHP.
You can set this constants in your virtual host following these instructions in the apache virtual host space. You have the option to insert this configuration in the .htaccess file, but in this case you must to keep different files on production and development. We don't think that it is a good idea while you should be using GIT and it will cause conflicts. Anyway, it depends of yours necessities and how is you using GIT features. Feel free to invent your own way if you want it and God touch your heart.
1 2 3 4 5 6 7
What that means?¶
It indicates that the system is running on development environment, in this way you can set some blocks of code to run only in that environment and don't have the risk to forget dump's accidentally lost in the code.
1 2 3 4 5 6 7 8 9 10 11 12
It indicates to the system that the errors must be shown. Actually, if you followed the recommendation to create
index.php file you don't need to do anything else. Your
index.php file must to be like this:
1 2 3 4 5