Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Add a BoostrapFormHelper

Open
#45 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
bootstrap, php
Domain
frontend

Research direction

Start with View/Helper/TwitterBootstrapHelper.php and compare its existing HtmlHelper/FormHelper mix with the listed Cake helper methods. Trace the bake templates and decide how the lightweight BootstrapFormHelper should cover create, input, end, button, radio, checkbox, and select without regex; done means those generated forms receive the intended Bootstrap 3 defaults.

Written by the indexing model from the issue text.

Description

2.x bug

The current bake templates mostly output Bootstrap styled code by default. One area that is weak are generated <forms> for add/edit. The current templates were taken from ABUS, which used the BoostCake helpers to auto-inject Bootstrap-specific settings into calls to Form->create(), Form-->input(), etc. We need something similar, but without the huge bloated, regex-powered BoostCake stuff.

I started some work on this a long time ago in what is currently View/Helper/TwitterBootstrapHelper.php. This is kind of a mixup of HtmlHelper and FormHelper currently. There are probably some base functions like _buttonOptions() that could be placed in a central class, and then break out the assistance methods for overriding Form->create() or Html->getCrumbs()` into respective BootstrapFormHelper and BootstrapHtmlHelper classes like in Joey's loadsys/twitter-bootstrap-helper and BoostCake, but much lighter in weight and tuned for BT3 (with no regex either).

We don't need to go for full Bootstrap feature completeness, just enough to set proper default TB3 styles for Cake's built-in helper methods and really just our bake templates (which means Form->create, input, end, button and the input subtypes like radio, checkbox, select).

Dominant language
PHP
Stars
10
Forks
1
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from loadsys/CakePHP-Skeleton

All issues in loadsys/CakePHP-Skeleton

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.