How to add a grid of data to form


#1

I have a form that currently has a couple of inputs. I need to add a grid of data either below or to the right of those.
I can find no examples on the correct way to do this. I can force it in outside of the php in the ctp file, but that doesn’t seem right. This project uses CakePhp 2 and bootstrap 2.3.2.
If added below:

If added to right:

I am new to php & CakePhp, any hints would be greatly appreciated!


#2

I believe CSS is what you need. put the form and the table in seperate div… add style=“float:left”; to the form then style=“float:right”; to the table. You may want to use bootstrap for faster design. Check grid : http://getbootstrap.com/css/#grid , here is sample usage : https://getbootstrap.com/examples/grid/


#3

Cake 3.x uses foundation


#4

I would love to use the grid system, but I don’t think that was introduced until Bootstrap 3.