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
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',
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
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
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,
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
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