Working on my first cake PHP site, and when I am confused as I should use the HTML files of KP PHP /
They look great for forms - but for links, images, divs ... etc, they seem redundant.
Am I seeing something? What is the benefit?
(I had got a similar discussion on stack overflow, but it was directed to the specific code, not the code in general.) Thanks in advance for any help!
I use help for most forms, links and images. I have around 3 environments running local (local, dev and production). Local and dev usually run in a subfolder setup and runs on the production root domain. For this reason I use helpers for links and images because in this way I do not have to worry about the base URL when adding images and indicating it is very easy and portable
The form helper, of course, is invaluable when you want to create an automated field inside the form.
And then you have script and meta helpers, so make it easier to manage your custom header tags / scripts / styles.
Comments
Post a Comment