I found it, the paste above got messed up because a ); on at the end of
the link!  I have a few questions...

What does this mean?  Can you tell me what it is doing?  What is
&$this?  and where it says "name" below, what does that equal (and how
did it get set)?  You also used $beforeFilter.  I couldn't find a
situation on the wiki where it was used exactly the way you did it.
Apparently you are calling the init function below with it, but I'm not
sure.

        function init()
        {
                $this->Menu->controller = &$this;
                $this->Menu->init($this->name);
        }



Another question, can you explain this line?

echo "<li>".$html->link($Menu[0], $Menu[1], $this->name == $Menu[0] ?
Array('class'=>'active') : NULL)."</li>";

I believe [0] is the link name, [1] is the url, and [2] is set if there
is a submenu (another array).  But you see $this->name == $Menu[0].  So
does this mean it is checking to see if it the current menu item is
equal to the link name?  If that is what it is doing, I'm just
concerned because the actual link name could have caps, puncuation,
etc.  Could it get messed up?  I am wondering how the current page
loaded got into this->name.  Is this "name" coming from the $name that
we have to set in our controller for PHP4 hosts?  If that is the case,
wouldn't it always equal the same?  So we have to have a different
controller for every link?

Thanks for the help.  If you could dumb it down, that would be great, I
usually have an idea, but not completly sure if my understanding is
correct.


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