Re: Redirect URL format not as expected.

2011-02-13 Thread adam_g2000
Thank you Jeremy, you've saved me a great deal of time going forward. I now really have got to grips with the base routing and have redeveloped the work done so far using your suggested method - much quicker, easier to read through the code and tighter. I can't thank you enough. Before I

Re: Redirect URL format not as expected.

2011-02-13 Thread adam_g2000
In case the index controller is useful, here it is. function index($categoryID = null) { if (!empty($categoryID)) { App::import('Model','Category'); $cat = new Category(); $category = $cat-field('title',

Re: Redirect URL format not as expected.

2011-02-13 Thread Ryan Schmidt
On Feb 13, 2011, at 16:50, adam_g2000 wrote: On Feb 14, 11:48 am, adam_g2000 wrote: However I still have the problem with redirect. It doesn't seem to be sending the variable, or my controller is not reading it. When I reference the variable in the view, I get the error Notice 8: Undefined

Re: Redirect URL format not as expected.

2011-02-13 Thread adam_g2000
Thanks for pointing that out Ryan, I'm sorry I should have been more clear. I know why the error is occurring in the page (I can see currently there is the opportunity for it not to be set, and will revise that once I've finished sorting out the fact that it's not being sent by 'redirect'), it's

Re: Redirect URL format not as expected.

2011-02-13 Thread adam_g2000
I've been playing around with this further, and have made a discovery. Redirect is not to blame. Therefore let's say this one is solved (thank you Jeremy) and I'll repost the real problem under a more appropriate title. Thanks Jeremy and Ryan for your invaluable assistance. Adam. On Feb 14,

Redirect URL format not as expected.

2011-02-11 Thread adam_g2000
Hi Guys, Firstly, this is my first post, so please be gentle and my apologies for any inevitable faux pas should I make any. Secondly, I am aware there seems to be much confusion around redirect, I have been studying both the Cookbook, CakePHP Application Development (Book) and a series of

Re: Redirect URL format not as expected.

2011-02-11 Thread Jeremy Burns | Class Outfit
Take out your customer route - you don't need it. Just use links in the format: echo $this-Html-link( 'Text', array( 'controller' = 'controller_name', 'action' = 'action_name', $variable ) ); Cake will sort the rest out for