Before beginning with the Boiler framework, it is important to setup a good build environment. This tutorial shows you the stages to build your development area in an existing basic LAMP (Linux, Apache, MySQL and PHP) server. We will also touch on the Eclipse PDT build environment ready for you to start building with your new framework.
What you will need:
Check out the git:
If you have any issues with the code, or would like to comment please see our project page at https://github.com/ivebeenlinuxed/Boiler
Your Apache configuration for the site should resemble the following:
There are so many ways to configure Apache with PHP we suggest you copy the configuration for an existing site and edit the lines DocumentRoot and <Directory /var/www/Boiler/htdocs> to the correct values.
The framework is split up into three main directories framework/application, framework/system and htdocs
The framework/application directory is where your build will happen. Anything you need to edit will be in this directory, away from the system files which make the application work in framework/system. Most core classes are extended in the framework/application folder to allow overriding.
The framework/system directory contains all the standard code to make your application work. The database framework and routing classes for example are all stored in here. If you need to make a change to this directory it is probably true you also should log a bug with your code into our project page, as the problem you are facing will affect others.
The htdocs directory is the public directory of the project. In this directory you will find an .htaccess file, telling the server to route all requests through the index.php file found in this directory. Files such as static CSS and JS should be put in this directory, as they are not server executable, and should be accessed without the help of PHP, thereby saving server resources. Just create folders in this directory and your files will be available!