2
我嘗試沒有成功運行非常簡單的無脂肪例如,發免費樣品例如未能
的index.php:
<?php
$f3=require('fatfree/lib/base.php');
$f3->route('GET /',
function() {
echo 'Hello, world!';
}
);
$f3->run();
?>
的.htaccess內容:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php [L,QSA]
錯誤日誌:
[Fri Dec 21 20:50:11 2012] [error] [client 127.0.0.1] - /var/www/html/index.php:2 require('/var/www/html/fatfree/lib/base.php')
[Fri Dec 21 20:50:11 2012] [error] [client 127.0.0.1] PHP Fatal error: Uncaught exception 'ErrorException' with message 'Undefined index: ONERROR' in /var/www/html/fatfree/lib/base.php:1252
Stack trace:\n#0 /var/www/html/fatfree/lib/base.php(790): Base->{closure}(8, 'Undefined index...', '/var/www/html/f...', 790, Array)
#1 /var/www/html/fatfree/lib/base.php(1246): Base->error(500, 'date_default_ti...', Array)
#2 [internal function]: Base->{closure}(Object(ErrorException))
#3 {main}
thrown in /var/www/html/fatfree/lib/base.php on line 1252