Skip to content
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.

Latest commit

 

History

History
25 lines (21 loc) · 862 Bytes

README.md

File metadata and controls

25 lines (21 loc) · 862 Bytes

CollegeFB/Web

Application using Slim framework and Slimcontroller package to build the website that uses the CollegeFB logic.

To get it working you need to create a public file and set inside the following code

require 'vendor/autoload.php';

$options = array(
    'database'  => 'my_database',
    'twitter'   => array(
        'key'      => 'twitter_key',
        'secret'   => 'twitter_secret',
        'auth_users'    => array(),
    ),
    'xauth_token'   => 'xauth_token',
    'admin_templates_path'  => 'templates/admin',
    'web_templates_path'    => 'templates/web',
);

$bootstrap = new \CollegeFBWeb\BootstrapApp();
$container = $bootstrap->getContainer($options);
$bootstrap->getApp('web', $container)->run();