htmlhelper input label problem

Dear baker ,

For normal convention naming for input as example $ this->form->input('username')

It will create view as. Username : [input] and when submit it will say save to table field username , but now i wAnna create input as . User : [input] , but when submit it say save to table field username .

Asked by andrew3719, on 22/2/12

2 Answers

I cannot understand what you are trying to ask here

but either way it should be $this->Form instead of $this->form

Answered by euromarkon 22/2/12

Sorry I try to explain by using html tag but all the html tag was filter

andrew3719 - on 22/2/12

Euromark , I notice u answer quite number of my question , thank

What I trying to do is make a login page , but my user table field name is user_name , bit for the login view I Crete a form to let user login , normal I use $ this->Form-

>input('user_name')

Will result in :

user_name:

I want it look like

Name:

Hope you can understand

andrew3719 - on 22/2/12

<< comments | comments >>

echo $this->Form->input('user_name',array('label'=>'Name'));

Answered by fiblanon 22/2/12

<< previous next >>

Your Answer

You can use Creole Wiki Syntax to format your text.

Rating

0

Viewed

289 times

Last Activity

on 22/2/12