PHP code example of jashka / framework
1. Go to this page and download the library: Download jashka/framework library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jashka / framework example snippets
return array(
'mode' => 'dev',
'routes' => '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'
)
);