> Well what i want accomplish is pretty easy, I have a table
> categories.. and i want to create links from the table categories in a
> menu. And this menu has to be on every page no matter what the url is.
hmm, easiest thing would be to do this in the beforeFilter of your
app_controller.
class AppController extends Controller
{
// you need access to the Category model
// nb: you will need to change this to match your Model name
var $uses = array('Category');
function beforeFilter ()
{
$this->set ('menu_data', $this->Category->generateList ());
}
}
hth
jon
--
jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---