Welcome Guest, Not a member yet? Register   Sign In
loading different module views into page virew. possible or quite wrong?
#2

[eluser]Jan_1[/eluser]
hope I have understood you and this might be a help:

make a view_file with 3 cases (empty_form, success and error)
pass a variable from controller_file to view_file which says what kind of view is needed.

make form-validation in the controller_file
if form-validation is ok, call function in model_file which writes input_data to database

PS: if you like to: call form_fields from a function in model_file and pass it to view_file by controller_file


Messages In This Thread
loading different module views into page virew. possible or quite wrong? - by El Forum - 07-30-2010, 01:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB