У меня действительно страница не найдена, проблема с нумерацией страниц в cakephp.
Не возникает никаких проблем, когда результат разбивки на страницы содержит только 1 страницу или столько же, но произойдет ошибка, если у одного результата разбивки на страницы больше, чем у другого.
Код: Выделить всё
for example.
-income has paginate result 1 page and expanse has 1 page. No problem at all.
-income has 10 pages and expanse has 10 pages no problem at all.
-income has 2 pages and expanse has 1 page. income page 2 page not found error.
-income has 5 pages and expanse has 2 pages. income page 3,4,5 page not found error.
-income has 10 pages and expanse has 13 pages. expanse page 11,12,13 page not found error.
Код: Выделить всё
//this is how I config paginator in Student controller.
public $paginate = array(
'Income' => array (
'order'=>array('income_id'=>'ASC'),
'limit'=>10,
'recursive'=>0
),
'Expense' => array (
'order'=>array('expense_id'=>'ASC'),
'limit'=>10,
'recursive'=>0,
)
);
//this is how I config Income paginator in Student view
//this is how I config Expanse paginator in Student view
Если у вас есть вопросы, задавайте их мне.
Спасибо.
Подробнее здесь: https://stackoverflow.com/questions/222 ... in-cakephp