28/04
2016
Framework for create web-app
How to use, (*1)
Create config file in app/config/config.php, (*2)
<?php return array( 'mode' => 'dev', 'routes' => include('routes.php'), 'main_layout' => __DIR__.'/../../src/Blog/views/layout.html.php', 'error_500' => __DIR__.'/../../src/Blog/views/500.html.php', 'pdo' => array( 'dns' => 'mysql:dbname=name_schema;host=your_host', 'user' => 'user', 'password' => 'password' ), 'security' => array( 'user_class' => 'Blog\\Model\\User', 'login_route' => '/login' ) );