<?php
include 'vendor/autoload.php';
$app = Base::instance();
$app->route('GET /', function() {
echo "hello world";
});
$app->run();Hi,when I install F3 using composer and add the following code to my index.php I get:<?phprequire "vendor/autoload.php";$f3 = require('vendor/bcosca/fatfree/lib/base.php');$f3->set('DEBUG',3);$f3->run();Internal Server Error
Fatal error: Cannot redeclare class Cache
Idea?
--You received this message because you are subscribed to the Google Groups "Fat-Free Framework" group.To unsubscribe from this group and stop receiving emails from it, send an email to f3-framework...@googlegroups.com.To post to this group, send email to f3-fra...@googlegroups.com.Visit this group at https://groups.google.com/group/f3-framework.For more options, visit https://groups.google.com/d/optout.
{
"name": "bcosca/fatfree",
"description": "A powerful yet easy-to-use PHP micro-framework designed to help you build dynamic and robust Web applications - fast!",
"homepage": "http://fatfreeframework.com/",
"license": "GPL-3.0",
"require": {
"php": ">=5.3.6",
"google/recaptcha": "^1.1"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/bcosca/fatfree"
}
],
"autoload": {
"classmap" :[
"app/models/",
"app/controller/"
],
"files": [
"lib/base.php",
"app/functions.php"
]
}
}
<?php
require_once("../vendor/autoload.php");
$f3 = Base::instance();
$f3->config("../app/config.ini");
$f3->config('../app/routes.ini');
$f3->run();