Saturday, November 28, 2009

Re: Span Tag

echo "<li>" . $html->link("<span>Link Text</span>","/some/link/",array
(),false,false) . "</li>";

On Nov 28, 6:48 pm, "Dave" <make.cake.b...@gmail.com> wrote:
> Any ideas how to accomplish this output code in Cake?
>
> <li><a href="/some/link"><span>Link Text</span></a></li>
>
> I have tried using the $html->link and $html->tag('span', 'Link Text');?> in
> various ways but all I get is
> <li><span><a href="/some/link">Link Text</a></span></li> with the span
> outside the <a>
>
> Thanks,
>
> Dave

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: