Problem solved. Finally. After hours of crying ;)

Difficult to explain, what the problem was, but basically I grabbed
some code for creating my footer (on each page = default layout) and
fill it with data from the DB. Afterwards I tried to re-use this code
for my navigation as well and then things were broken. After stripping
down everything to the bare minimum, I noticed that the code for my
footer included the FooterHelper by creating an object in the default
layout:

$Footer = new FooterHelper();

Totally out of place, because the helper was included through my
app_controller already. I don't know why, but after simply deleting
this piece of code and calling the helper methods with "$footer->"
instead of "$Footer->" ... everything seems to work fine.

Lesson learned. Never ever include pieces of code, without fully
understanding what's going on. Thanks!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to