0

Is there a way to get form helper to create the inputs of the form (retrieved from db table) by itself?

2 Answers 2

4

The fastest way to create a form:

echo $form->create();
echo $form->inputs();
echo $form->end();
Sign up to request clarification or add additional context in comments.

Comments

0

look at the code cake uses for scaffold, its basically doing a foreach on $Model->schema() and echoing an input for each field. Cake will already pick an input type for the field so the rest is automatic

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.