jashka/framework

Framework for create web-app

1.0.0 2016-04-24 13:33 UTC

This package is not auto-updated.

Last update: 2024-10-26 19:27:04 UTC


README

How to use

Create config file in app/config/config.php

<?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'
        )
);