Re: After validate form - missing url parameters (i.e. /books/add/category_id:51)

2008-11-14 Thread grigri
You don't need it in the url at that point: books_controller: function add() { if (!empty($this->data)) { // Saving, whatever here } else { $this->Book->create(); // List of parameters that can be specified in the url. // Can also handle aliases (category => category_id for

After validate form - missing url parameters (i.e. /books/add/category_id:51)

2008-11-14 Thread Pizgin
Hi! Address in browser "/books/add/category_id:51". If after press on save button except an error - CakePHP redirect me on url "/books/add" and "category_id:51" is missed. Can i fix it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to th