⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

How to add filters (dropdownlist, checkbox, etc)



vinnyboy
  • profile picture
  • Member

Posted 11 July 2012 - 05:52 AM

Hello,
I am new to this MVC stuff including obviously CodeIgniter and GroceryCrud. Having a little trouble working within these frameworks. Need help.

I would like to add one or more filters to narrow my record set. I realize there is a search box that comes built in but ofcourse I need more. I want to be able to add, for example, a dropdownlist for states that when you select one it will only have those records where the state is IL or whatever state you pick.

Best case scenario, I would have one or more dropdownlists and a submit button that resubmits the query and returns a new record set.

fdias
  • profile picture
  • Member

Posted 11 July 2012 - 14:12 PM

I strongly recommed you read some CI tutorials and understand the concept of MVC.
GC is very nice, but it is implied that you know your way around CI and grasp the concepts of MVC before you use it.

I recommend the official CI site tutorials from the link below:

http://codeigniter.com/tutorials/

Wikipedia's MVC page will give you a nice view of what it is:

http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller

Cheers.

vinnyboy
  • profile picture
  • Member

Posted 11 July 2012 - 21:26 PM

Thank you for the links. I definitely do know what MVC is and have ofcourse gone beyond codeigniter 101. I personally like the videos over at nettuts http://net.tutsplus.com/sessions/codeigniter-from-scratch/

BUT back to my original question...no one has addressed it anywhere on this site. I need some help. These videos will not help as I have seen them. So if anyone has done this please advise.