Re: How can I build a navigation menu in cakephp?

2009-09-25 Thread brian
On Fri, Sep 25, 2009 at 12:34 AM, Barney wrote: > > thanks, what's caching result? can you give me more tips please > The server stores a version of the result so that, on subsequent requests, it need not request the data from the DB, filter it, turn it into a view (the HTML). Although there are

Re: How can I build a navigation menu in cakephp?

2009-09-24 Thread Barney
thanks, what's caching result? can you give me more tips please On Sep 24, 8:33 pm, brian wrote: > Remove the single quotes. $category['Category']['name'] is already a > string so you don't need them. What you'd done is passed the literal > string, '$category['Category']['name']'. > > As for c

Re: How can I build a navigation menu in cakephp?

2009-09-24 Thread brian
Remove the single quotes. $category['Category']['name'] is already a string so you don't need them. What you'd done is passed the literal string, '$category['Category']['name']'. As for creating a menu, once you have something working, you might want to look at caching the result so you're not hi

How can I build a navigation menu in cakephp?

2009-09-24 Thread Barney
first, I am very new to cakephp. I have 2 tables "categories" and "products" I want to make a menu like category->product tree in the view, i use those code to display the categories: But if I want to add links to these categories how can I use $html->link to achieve it? $html->li