purplebabar / flightpilot
This is a Backbone to build simple app with Flight
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=5.3.0
- mikecao/flight: v1.2
- mustangostang/spyc: 0.5.1
- smarty/smarty: 3.1.*
This package is not auto-updated.
Last update: 2024-10-26 17:45:27 UTC
README
Backbone to build a simple Flight App
Presentation
FlightPilot is just a backbone to build a Flight App. Therefore you'll need to know Flight from mikecao. You can install FlightPilot with composer : php composer.phar create-project purplebabar/flightpilot path/to/your/project
Config
In the app/config folder you'll be able to congfigure your app. The config.yml is used to override Flight parameters. The smarty/smarty.conf is used to override Smarty parameters.
Routing
Every php file in the src/Routing folder will be loaded.
Errors
Errors are displayed in a template that you can modify to suit your needs. If you change the views path, let the Errors folder in or recreate one in order to personnalize them. To personnalize an error, just create a file named (code).tpl in the Views/Errors folder.
Template Engine
Smarty is the template engine.
Assets
Assets must be placed in the web folder and be called with th following path: 'http://{$smarty.server.SERVER_NAME}/path/to/your/file.format'