generate forms from models in CAKEPHP - forms

hey has anyone successfully done this, do you have a simple example of this? the goal is to build a frontend to create the form thus the form variables being saved in the database.
do i need to know what fields are being saved /mirror with another table or can one do this in the same table?

Probably you are searching for this?

Related

Edit related child models in Laravel Backpack

I've just recently started using Backpack and quite like it so far.
I'm trying to figure out the best way to allow create/update for related models in Laravel Backpack.
When there is a One-to-Many or even Many-to-Many relationship, we can use field type relationship and it works. We can create new child model using the inline feature.
However, the added child model is shown as a small tag with a cross icon only. We cannot see the details of this model and cannot edit it from that screen. It would be great if we could show the existing child models as a table with edit link that opens a modal. Is there any existing component that kind of does that?
If not, how can I go about achieving this?
Alternate approach: can I use the table field and somehow modify it so that data is saved as child models instead of json? I am happy to take either approach, whichever is better.
I hope I was able to articulate what I'm trying to achieve, I'm happy to use any other approach that is there or easier.
Thanks in advance.

SYMFONY FORM - filter attribute form on top with submit button, that provides a table with other form used to edit each row details

I am looking for best practices on SYMFONY FORM handling to achieve the following standard page (surprisingly I haven't found anything similar existing yet on SO).
Here is a shema of what I want to achieve:
As you can see at the top there is a SYMFONY FORM to filter the results that should be displayed.
It displays a table and each tuple of the table should permit to open another SYMFONY FORM kind linked to the tuple.
I am in the process of learning SYMFONY FORM, so far, I can manage to create the top row FORM to set the filter that'll apply to the table display.
But I wonder if anyone has experience on the second part: Displaying the table that embed as well many forms of a similar kind -That seems a bit more complex. I read about TWIG.EXTENSION and FORM.COLLECTION, I'll investigate that. But if someone could save me to re-invent the wheel and lead me to some direct shortcut, I'd be really grateful.
No idea if it's the best practice, but one way to do it would be to create a new property for your entity being listed in this table, called $editionForm (without mapping it to the database) for example.
Then, either throught a custom loop or by listening to a doctrine (or any ORM you use) hydration event (or triggering such an event if you don't use any ORM), fill the property with the generated form, probably within a dedicated service.
Then, just use it in your template like this :
$entity->getEditionForm()->render()

Zend form application

Im writing a program in zend using zend forms. Everything is fine the form process well to the database but the problem is that the form is too long +-50 inputs which all belong to one database table. How can I find a way to shorten/break some parts of the form to fill in first and then use a next link to fill the rest, bit by bit, and then a finish link to process the form to the database. Basically break the form in parts so that the user wont give up easily or become lazy while filling in his/her details. Can I use multipage form if so, how can I go about it?
Thanks in advance
Use Sub forms for each step (page). See this example - http://framework.zend.com/manual/1.12/en/zend.form.advanced.html#zend.form.advanced.multiPage
As each step will probably contain its own validation, I suppose that the best approach would be to write a separate form for each step in the wizard. After successful validation of one form, store the results in the session and proceed to the next step.

Multistep forms using CodeIgniter

I am trying to build a multistep form with CodeIgniter,but I cant figure it out how it should be.My thoughts are to create for each step different contoller functions and views. Is my thought right or is there any better way to implement it?
Do you recommend to create the fomrs using AJAX?
Thank you in advance.
For youe problem i can suggest two solutions.
It is up to you either you use ajax or form post.
Method 1
1.One first setp save the data to table
2.In the second and all other steps update the table.
If you are going to give back functionality you will
have to work carefully and make sure your form code has
primary key when at least step one has passed through.
Method 2
In this method do not save in the table just through
each form post to session and when the final step is
passed through you can save the data to table from session
once and for all

How can I displayed captured input in typo3?

I create a form wherein the user enters some values but I now need to retrieve those values to display in a table. I'm unsure about how to achieve this. I'm working with the intro package and new to the system. I've read some tutorials but nothing about achieving this.
Edit: I should mention that I need to persist these values in a database first before attempting to display it.
Probably, the easiest way is to use Powermail extension, which handles many cases.
You could save the submitted data in dB and show it after with Your extension, or TypoScript configuration.