Hi Bobby,

Just (another) thought, you may find that something like this is more
appropriate.

Here's a variation on the theme, no component, but with a menu element:

// Defined in app_controller
var $menuContext = Array();
// Defined in app_controller
function beforeFilter ()
{
        $this->_defineMenuContext();
        $this->controller->set('ContextMenu',$this->menuContext);
}

// Defined or derived in each controller
function _defineMenuContext()
{ // add logic to change based on current function
        $this->menuContext[] = Array ("Something","/Blah/Blah");
}

In the relavent element, loop through the $ContextMenu variable
creating the context relavent links for your controller.

Cheers,

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