Simple PHP MVC framework with its own ORM
- Download Candle as ZIP
- Extract the ZIP archive to your project folder
- On your machine create new local domain. For example candle.local
- Set your web server (Apache for example) document root to
<project-folder>/web
- Candle is now installed.
- Once you've installed Candle, open http://candle.local/rad.php
- You will see a list with two installed applications Demo and Rad. Bellow the list click on the link Create New Application
- Fill the form with following information:
- Application Name - specifies the system application name. It is recomended to use CamelCased names. For example
MyApplication
- Front Controller - specifies the application's front controller file name. For example
myapp.php
. - Click Create
- Your application is now created. Test it by navigating to the specified front controller. For example http://candle.local/myapp.php
Once you have created an application by using Candle RAD, you will have:
- Main Controller - Good starting point for your application. The controller will have some actions which will handle the home page and error pages.
- A routing file
<project-dir>/app/<your-app>/routes.php
with two route rules available. - A bunch of templates in the
<your-app>/View/
directory: layout.phtml
- representing the application layout.main/homepage.phtml
- representing the home page content.main/error404
- representing a a HTTP 404 error page.main/error500
- representing a a HTTP 500 error page.- A
config.ini
file with basic application configuration.
Now everithing is in your hands. Start developing your application by changing your Controllers and Views!