Sunday, March 14, 2010

Re: $escapeTitle param missing in $ajax->link in current 1.3 release

Ah, OK. I've been looking in the 1.3 section of the Cookbook:
http://book.cakephp.org/view/1358/AJAX.

Thanks for the help!

~Jon

On Mar 14, 3:36 am, Walther <waltherl...@gmail.com> wrote:
> It is clearly documented in the migration guide. It is also clearly
> documented that the Ajax helper has been deprecated and replaced with
> the new Js Helper.
>
> On Mar 14, 3:33 am, Jon <jongauld...@gmail.com> wrote:
>
>
>
> > 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 <jongauld...@gmail.com> 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 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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate