CakePHP路由问题

时间:2019-09-23 19:06:14

标签: php cakephp routes cakephp-2.3

我有这个奇怪的问题。

我运行我的项目,除了在记录的下一个,上一个或选择编号中使用分页器选项外,其他所有项目都正常运行。

<?php
echo $this->Paginator->first('<< first');
echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
echo $this->Paginator->numbers(array('separator' => ''));
echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
echo $this->Paginator->last('last >>');                 
?>

它给了我: 未找到文件:contabilidad2017 \ webroot \ index.php \ cabasientos \ index \ page:1295

我不知道为什么我的浏览器中应该有/webroot/index.php cz

contabilidad2017 \ webroot \ index.php \ cabasientos \ index \ page:1295 这是我目前的路线

Router::connect('/', array('controller' => 'users', 'action' => 'login'));
Router::connect('/pages/*', array('controller' => 'pages', 'action' => 'display'));
Router::connect('/dashboard', array('controller' => 'pages', 'action' => 'display', 'home'));
Router::connect('/login', array('controller' => 'pages', 'action' => 'display', 'home'));
Router::connect('/logout', array('controller' => 'users', 'action' => 'logout'));

为什么给我那条错误的路?我该如何解决?请帮助我。

0 个答案:

没有答案