Helper or View for a Dynamic Form Menu? |
[eluser]Solarpitch[/eluser]
Ello again, On the left of my application I plan on having a form with a number of checkboxes for a search. This search wil be on a number of pages. Ideally Id's like the check boxes to be database driven so the client can add another checkbox to the form from the backend. Just wondering how I can achieve this. Here's an example of the form... Code: <form name="" method="" action=""> Whats the best way to do this? I take it the <li> will be generated via a loop after a query on the DB. Should the query be in my model and then I can pass it to my controller? Just a little lost.
[eluser]Solarpitch[/eluser]
I've made an attempt at this myself. If someone could let me know if this is along the right lines MODEL... Code: function search_menu() CONTROLLER... Code: function products() VIEW (MENU/LEFT_SEARCH)... Code: <form name="" method="" action="">
[eluser]Pr0v4[/eluser]
Hey fellows! My problem is similar but with a little difference, I don't understand how I could insert in the database this kind of form... Few lines of code are always better than thousand of words Code: //Controller The thing that make so hard the realization is because each test has a different number of questions, and relatively answers... and when I find myself to insert the inputs, I don't understand how to move... Can someone help me? If you need more info I can leave more information! For example could be helpful a diagram of my db?!? If someone wanna have a look click here. |
Welcome Guest, Not a member yet? Register Sign In |