CakePHP-Bootstrap / cakephp3-bootstrap-helpers

CakePHP 3.x Helpers for Bootstrap 3 and 4.
https://holt59.github.io/cakephp3-bootstrap-helpers/
MIT License
130 stars 79 forks source link

Link in Dropdown Menu #159

Closed Edsol closed 6 years ago

Edsol commented 6 years ago

[x] bug [x] question

CakePHP Version: 3.6

I want to create a dropdown menu with links to use:

$operations=[
    $this->Html->link("Test Link1","/link1"),
    $this->Html->link("Test Link2","/link2"),

echo $this->Form->dropdownButton('Operations',$operations,['class'=>'btn btn-info']);

screenshot_20180510_101010

but the url does not appear in the code so there is no link

immagine

if I copy the same code outside from array like: echo $this->Html->link("Test Link1","/link1");

it's work perfectly:

immagine

Is there something that doesn't work in the dropdown menus or am I wrong to create the code?

Holt59 commented 6 years ago

Thanks for the feedback, this was effectively a bug. I fixed it in d9ade8bd84b36b2a807f8005fcff55715a8d7ba8, you should be able to update via composer.

Edsol commented 6 years ago

thanks a lot for quickly response and fix. Work perfectly now, also using Controller and action of cakephp.