此包已弃用,不再维护。未建议替代包。

CollegeFB项目的公共网站

v1.0.3 2014-11-28 12:03 UTC

This package is not auto-updated.

Last update: 2021-10-11 12:00:13 UTC


README

使用Slim框架Slimcontroller包构建使用CollegeFB逻辑的网站。

要使其工作,您需要创建一个公共文件并在以下代码内设置

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();