Search code examples
cakephppaginationnamed-parameters

CakePHP - Can you make forms submit params as named params?


So GET forms make the usual urls like

.../search/?q=apple

Can you make a form create urls like

.../search/q:apple/

Solution

  • Thanks, guys. I've found a different solution. I just submit the form as a POST and in the controller's action I read the post data and create a url with the post data as named params and then $this->redirect('...'); to it.