Does postLink method not exist in Cakephp version 2.4.4?

Asked

Viewed 59 times

-1

I am trying to use the postLink method to delete images using the name of these. However Cake gives me an error saying :Warning (512): Method Htmlhelper::postLink does not exist [CORE Cake View Helper.php, line 192]. But after seeing the Cake Logs, and the Cakephp 2.4.4 documentation itself, that I’m using, there’s nothing to indicate that this method is gone. How to solve this problem?

Code

    echo $this->Html->postLink('gallery/'.$gallery_image['GalleryImage']['path'], array('controller' =>'Gallery', 'action'=>'admin_del_image'),array(), "tem a certeza que quer apagar esta Fotografia?");

1 answer

1


In fact you are using the helper wrong. The correct is the FormHelper and not the HtmlHelper.

As you can see in API and in the documentation.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.