Hi,
I have a newbie question.
In my controller, when I do a set() like,
$customers = $this->Customer->findAll();
$this->set('customers', $customers);
I cannot access $customers in my view. I get an error saying undefined
variable. However when I set it in the data, I can access it fine.
$this->data = $customers;
Same thing with flash and other data that needs to be passed from
controller to view.
Please help!!!
Thanks,
Ben
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---