Giter VIP home page Giter VIP logo

Comments (5)

ndm2 avatar ndm2 commented on May 28, 2024

Because the form helper has a method for creating buttons (it's the same in the CakePHP core), and nobody ever brought up a need for something else.

Maybe it could make sense to have a method in the HTML helper that generates non-submit type buttons by default, not sure. You can currently achieve it like this (it should be safe to use outside of forms):

echo $this->Form->button('Click me', ['type' => 'button']);

from bootstrap-ui.

tgoeminne avatar tgoeminne commented on May 28, 2024

It would appear they have removed the button from html helper in cakephp 4

from bootstrap-ui.

ADmad avatar ADmad commented on May 28, 2024

button() is in FormHelper, not HtmlHelper.

from bootstrap-ui.

tgoeminne avatar tgoeminne commented on May 28, 2024

i use the other bootstrap plugin before it had button in html helper... but not updated to cakephp4... but a lot of small things change in cakephp which makes change the code to cake4 annoying. I just wonder what the advantage is of making these small changes like having to add the keyword void, Validator, to tableclasses... or the initialize method...it doesnt add much value imho... anyway going to need to change it use html link instead..

from bootstrap-ui.

ADmad avatar ADmad commented on May 28, 2024

Even in Cake 3 the button() method is on the FormHelper not HtmlHelper. So nothing's changed in Cake 4 or this plugin.

Whatever the "other" bootstrap plugin does is irrelevant to Cake and this plugin.

from bootstrap-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.