Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9268131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T14:43:53+00:00 2026-06-18T14:43:53+00:00

I am pretty a green hand in CakePHP programming, I have a question on

  • 0

I am pretty a green hand in CakePHP programming, I have a question on FormHelper usage –

If we use FormHelper at View, it will output some HTML codes and all these codes are defined in CakePHP (I think). The question is, all these codes are not as same as the HTML Template I already had, so I need to change HTML Template including html and css to comply to FormHelper convention. For me, it’s a lot works.

I am wondering, when I started to make a website, commonly I will get all templates from the designer, but the designer make all html themselves and they don’t know CakePHP convention at all, so how can I make all templates easier applied to CakePHP?

Customize FormHelper html template? Or just abandon them?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T14:43:54+00:00Added an answer on June 18, 2026 at 2:43 pm

    The output from CakePHP’s form helper is pretty customisable out of the box. The basic format of a field looks like this:

    <div class='input extra classes'>
    <label for='control_id'>Label</label>
    <input id='control_id' name='control_name'/>
    <div class='error'>Validation error message</div>
    </div>
    

    Which is just about the minimum markup you can get away with to style up any form element.

    You can inject additional markup using the ‘before’, ‘between’, ‘after’ etc. options of Form::input();

    Of course, you don’t HAVE to use the form helper (although it takes a lot of dog work out of making forms). You can just past the raw HTML for your form into the view.

    The problem with this is that you won’t see the error messages generated when validation fails and you will also need to make sure you use the exact naming conventions for the
    input name attribute to make sure your form works with Cake’s validation.

    An easy way to do this is to just add a regular echo $this->Form->input() to your page and copy the name attribute in generates into your html markup.

    All this being said, I don’t always do my own markup and have yet to receive markup from a 3rd party that couldn’t be mimicked with Cake’s Form helper and some CSS.

    If you post an example of the form you are trying to re-create we could have a better crack at answering this question in better detail.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Pretty self explanatory. I have a textbox in an updatepanel that will autopostback when
Pretty simple question. I'm quite certain I have the Class, method, codebehind, etc linked
I'm pretty green still when it comes to web programming, I've spent most of
I have a pretty basic Backbone question. I want to apply a class (using
I am pretty green at programming and I've to bring assignment tomorrow. It is
Sorry I'm pretty green with C++ is this sort of thing possible? I have
I am still pretty green when it comes to web development and javascript/jQuery programming,
I have a standard data-entry type form built in ASP.NET. I am pretty green
Still pretty green on clojure, java, layouts etc. On a miglayout I have this
I'm still pretty green at CSS, having the following CSS / HTML: <input type=reset

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.