index.php <-- this has little to no code and just gets all the functionality from the src folder above
.htaccess
img/
(all the images)
js/
(all the Javascript)
css/
(all the Cascading Style Sheets)
README.md
LICENSE
.gitignore
.gitattributes
This way when we create the virtual host on apache2, we point it at the folder webroot.
This leaves all the code OUTSIDE the webroot folder and apache cannot serve it, so no need for the defined(pasich) or die().
This will also begin to prepare you folder structure to use composer.
We need to have a talk about Name Spaces on your classes and probably use a better HTTP Client to access the explorer API.
But the composer stuff can wait, first the folder structure, please :smiley:
Hey @pasichDev,
Would it be OK if you modified your folder structure to the following?
This way when we create the virtual host on apache2, we point it at the folder
webroot
. This leaves all the code OUTSIDE thewebroot
folder and apache cannot serve it, so no need for thedefined(pasich) or die()
.This will also begin to prepare you folder structure to use
composer
. We need to have a talk about Name Spaces on your classes and probably use a better HTTP Client to access the explorer API.But the
composer
stuff can wait, first the folder structure, please :smiley:Many, many thanks!!
Cheers, Gus