Ah, so I looked a little more closely at the core function and then tried putting:
'escape' => false in my $options array in the method, and that worked. So I guess it's a documentation issue? ~Jon On Mar 13, 8:22 pm, Jon <[email protected]> wrote: > Hey all, > > I've never submitted a bug before, so I wasn't entirely sure of the > proper channels, and I'm hoping someone on here can either send me the > right way or log this appropriately. > > As the 1.3 manual says, the $ajax->link is supposed to work like this: > > link(string $title, mixed $href, array $options, string $confirm, > boolean $escapeTitle) > > I kept trying to escape an image as the link, however, and it refused > to work, so I checked the most recent version of the 1.3 core for this > method in cake/libs/view/helpers/ajax.php: > > function link($title, $url = null, $options = array(), $confirm = > null) { > ... ... > > } > > So, it looks like $escapeTitle is not actually part of the function in > the current release. I can just borrow some code from 1.2 to make it > work, but I thought I should bring it up on here. > > Alternatively, if it's not a bug, it could just be a documentation > error. If that's the case, how do you use an image as an AJAX link in > 1.3? > > Either way, this is the first error/bug I've found in several weeks of > using CakePHP, and I love the framework! > > ~Jon 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 [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
