Welcome Guest, Not a member yet? Register   Sign In
Posting a form that is included in a page
#4

[eluser]Flemming[/eluser]
Hi Jamie,

A quick and dirty summary of the MVC architecture:

Model - all your database queries

Contollers - logic, as much as possible of it

Views - HTML, with as little logic as possible ideally


A controller won't send validation messages through a redirect, which is why I suggested you post the dashboard form to the dashboard controller. If it fails validation then you WILL get the validation error data sent back to the view in validation_errors().

If you're using AJAX though, it doesn't matter where you post the data! So you can either start your AJAX work now (definitely use jQuery and it's AJAX or $post features) ... or you can spend a bit of time getting more familiar with CI and MVC first (sounds like a good idea) and then move on to AJAX.

Keep asking questions and I or someone else will be happy to answer them - but don't forget to search the forums too for answers if you think your questions are obvious/common ones!


Messages In This Thread
Posting a form that is included in a page - by El Forum - 11-16-2009, 06:50 AM
Posting a form that is included in a page - by El Forum - 11-16-2009, 07:36 AM
Posting a form that is included in a page - by El Forum - 11-16-2009, 07:45 AM
Posting a form that is included in a page - by El Forum - 11-16-2009, 08:05 AM
Posting a form that is included in a page - by El Forum - 11-16-2009, 08:12 AM
Posting a form that is included in a page - by El Forum - 11-16-2009, 08:22 AM
Posting a form that is included in a page - by El Forum - 11-16-2009, 08:37 AM
Posting a form that is included in a page - by El Forum - 11-16-2009, 08:41 AM
Posting a form that is included in a page - by El Forum - 11-16-2009, 08:45 AM
Posting a form that is included in a page - by El Forum - 11-16-2009, 09:35 AM
Posting a form that is included in a page - by El Forum - 11-24-2009, 10:24 AM
Posting a form that is included in a page - by El Forum - 11-24-2009, 10:36 AM
Posting a form that is included in a page - by El Forum - 11-24-2009, 10:37 AM
Posting a form that is included in a page - by El Forum - 12-10-2009, 06:46 PM
Posting a form that is included in a page - by El Forum - 05-22-2012, 12:45 PM



Theme © iAndrew 2016 - Forum software by © MyBB