What I did 

Hi, i´m working on a website where i have a view where i have a list of 
mattresses, on every item i have a link to a view/item_id. where i can see 
the specifications of the item. at the top of the view i will like to put a 
breadcrumb that looks something like Mattresses > item name. i can make it 
by adding the crumbs at the begining of the "view" view file, something 
like:
$this->Html->addCrumb('Mattresses',array('controller'=>'Mattresses','action'=>'index));
 
$this->Html->addCrumb('item 
Name',array('controller'=>'Mattresses','action'=>'view/itemId)); echo 
$this->Html->getCrumbs(' > ');

it works fine. Now, i have a View with a list of different Foam type, and 
just like the mattresses, i have a breadcrumb to see the speciffications of 
each Foam type and get something like foams/view/foam_id. inside this view 
i have a list of mattresses that are made with this kind of Foam. I will 
like to put a link on each mattress model so the user can go directly to 
the mattress specifications view (mattresses/view/item_id). now, i´ll like 
to have a breadcrumb in this file that looks something like this:

Foams > Foam Name > Mattress Name

so the user can navigate easily through the site. but i don´t know how can 
i achieve this. i don´t know if there is a way to have an stack of pages 
visited previously by the user.

i tred adding addcrumb on the foam view file but it does not works.
any idea?

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to