mathaios wrote:
> Thank you for your reply. I think the approach the tutorial suggests is
> the second one:

That´s true - because I wrote it that way (for better for worse).

> the problem is how do I specify the menu array into the component?

How is the data stored in the database? the hardcoded array was
essentially included as an example to demonstrate the format expected
later by the method in the arrayToUl method.

> but the application times-out.

Yes it probably will - because your nodes controller also includes the
menu component (at a guess), which calls the nodes controller which
calls the menu component...

> but I think more correct would be passing the array into the component, where 
> I can
> apply other businness logic, than into the view, am I correct?

Depends on your approach, but that´s the main reason for having the
component, so that you can manipulate the menu data based on ACL or
other logic. 

HTH,

AD7six


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to