找不到对象!错误404页面显瘦

时间:2017-11-27 12:34:48

标签: php slim-3

我得到了

  

找不到对象!错误404

当我说

$app->get('/signup', 'AuthController:getSignUp');

但是当我跑

时它会起作用
$app->get('/', 'AuthController:getSignUp');

在我的routes.php中,这就是我运行它的方式http://localhost/Authentication/public/index.php/signup并且它向我显示页面

  

找不到对象!错误404

这是我的.htaccess

ewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.php [QSA,L]

好吧,我得到的地方是我做错了我应该像这样运行它    http://localhost/Authentication/public/index.php/signup 不像这个http://localhost/Authentication/public/signup,它就像一个魅力。谢谢大家

0 个答案:

没有答案
相关问题