Live Example: http://exodus.io/framework/
- Entity passthrough class for property definition
- RESTful application interfacing
- Basic templating inclusion via View class
- Routing definition and loading and application arguments
- Environment definition and loading
- Database interface classes extending PDO
- Data output formatting (html, xml, json, etc.)
- Caching of requests on a per-application basis
- Basic authentication support
- Event handling and proxying
Add route to app/config/routes.php:
Route::add('example', array(
'pattern' => '/example',
'class' => 'Example\Application',
'method' => 'hello_world'
));
Create a new class in app/modules/Example/Application.php
namespace Example;
class Application
{
public function hello_world()
{
return 'Hello World';
}
}