Please I am struggling with implementing this very nice PHP Router library
In everything, it has worked flawlessly. It is an adorable piece of work. Thanks to Mitchell Malouf, et al. But please if you have worked with this Library, please help sort me out. See below and pinpoint my mistakes please.
Here is what I have done with it to set up pagination for my Site Search Page:
Help me pinpoint what I have done wrong:
- The Routes:
(i) get(’/search’, ‘views/search.php’);
(ii) get(’/search/page/$p’, ‘views/search.php’);
(iii) post(’/search/page/$p’, ‘views/search.php’);
2) The Form:
3) Typical pagination links:
Please help point out my mistakes. Thank you very much for your great help.