On Fri, Dec 18, 2009 at 12:13 PM, kdubya <kenwin...@winanstech.com> wrote:
> Try either: > $this->redirect(array('controller' => 'compatibles', 'action' => > 'index', 'product_id:'.$product_id)); > which should result in a URL like: > productsadmin/compatibles/index/product_id:3365 > This would be the right address, but the edit view is not receiving the product_id. I get the error: Notice (8): Undefined variable: id [APP/views/compatibles/edit.ctp, line 24] Code | Context include - APP/views/compatibles/edit.ctp, line 24 View::_render() - CORE/cake/libs/view/view.php, line 662 View::render() - CORE/cake/libs/view/view.php, line 376 Controller::render() - CORE/cake/libs/controller/controller.php, line 773 Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 248 Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 211 [main] - APP/webroot/index.php, line 88 This is the link that sends the info to the edit view: <?php echo $html->link('edit', array('action' => 'edit', 'id' => $compatible['Compatible']['id'], 'product_id' => $product['Product']['id']))?> -- Dewayne Pinion Web/Software Guy Trenton Technology http://www.trentontechnology.com Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en