Thanks a loot for this kind of menu.

http://www.palivoda.eu/2008/04/dynamic-menu-in-cakephp

and for the service, it helped me to improve my software solution
based on cake.

In order to validate (w3c) my pages I have encountered a small problem
with ampersant (&) and in particoular the code in the case ‘current’
doesn’t escape, so in my page source I had ‘&’ instead of ‘&escaped’,
in ‘no current’ case the escape was right, so I wasn’t able to have a
unique validated result.

I resolved this problem adding htmlentities PHP function in this way:

$out[$caption] = $this->Html->div(’current’, htmlentities($caption));

instead of the original:

$out[$caption] = $this->Html->div(’current’, $caption);

Infact funtion 'link' escapes character automatically, 'div' probably
no!!

Thank again Polivoda you are great.

But I think that this kind of problem could exists in other menu
components (or in some other components at all)

Babila Saronni

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to