[eluser]mikepuerto[/eluser]
Hi,
I have an "add()" method in a controller for inserting records into a DB. This method loads the view with the form, "http://example.com/controller/add". Right now I also have another method("insert()") that handles validating the data and then passes it to my model. So the form is posting to "http://example.com/controller/insert".
My question: From a best practice point of view, does it make sense to have two methods? It just seems weird to me that I have a method with the sole purpose of showing a view... Is this how it should be done? Is there a better way to do it?
Thanks!
Mike