hyperlink - postLink() in cakePHP 3.x -
i created crud operations in cakephp 3.x. deleting records using postlink() function.
$this->form->postlink("<i class='fa fa-remove'></i>", ['action' => 'delete', $role->id], ['escape' => false],['title' => 'delete', 'class' => 'users'])]);
it doesn't set class delete icon. need set class name delete icon. can create own dialog box. if removed escape attribute means create class doesn't display icon. changed order of escape , class not working. please me
did use proper ide? did check amount of attributes may use postlink()? documentation states: postlink($title, $url, $options). why using forth then? of course 1 ignored.
so should instead:
$this->form->postlink( "<i class='fa fa-remove'></i>", // first ['action' => 'delete', $role->id], // second ['escape' => false, 'title' => 'delete', 'class' => 'users'] // third );
Comments
Post a Comment