Welcome Guest, Not a member yet? Register   Sign In
Separating Code / Error Handling
#1

[eluser]Unknown[/eluser]
I am new to CodeIgniter but am having this problem quite a bit. Say I have a controller 'Contacts' and the index() page lists all the contacts... and on this same page I want to have a form to add a contact... The only thing I can do (If I want to print validation errors), is to handle the form in the same controller...

Is there a way of making a new method in the controller... add_contact().. handling the form in that then passing the errors back to the index() controller? Or is this just not a good idea?


Messages In This Thread
Separating Code / Error Handling - by El Forum - 04-05-2011, 03:00 AM
Separating Code / Error Handling - by El Forum - 04-05-2011, 03:15 AM
Separating Code / Error Handling - by El Forum - 04-05-2011, 03:22 AM
Separating Code / Error Handling - by El Forum - 04-05-2011, 07:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB