Redirect does not redirect you to the previous page. If you don't have the ID to the page you want to redirect to, then you cant redirect to it.
You need to save that ID somewhere if you want to use it. On Dec 17, 2:01 pm, Dewayne Pinion <[email protected]> wrote: > No luck so far. The http_referrer just stayed on the edit page. Using the > code below, I saw null. I did see in the code that I had $id instead, but > when I echoed it the id was the related product that I was editing, not the > main product page. > > On Thu, Dec 17, 2009 at 4:48 PM, Andras Kende <[email protected]> wrote: > > echo 'product_id is: ' . $product_id; > > die(); > > -- > Dewayne Pinion > Web/Software Guy > Trenton Technologyhttp://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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
