Welcome Guest, Not a member yet? Register   Sign In
Two views one controller
#1

Hey!

I just have one controller:
  • Students

And two views:
  • students_v //Show a list of all students
    form_students_v //the page that has a form to create a new student

All that i want is to make the Students controller handles all the methods. I dont want to create another controller called Form_studens.

So... How can i make the original Students take care of the two views? Is the best practice create a method inside the Students to load the form_students_v page? I should use a helper to load that?

Its so confusing to me...

Tks
Reply


Messages In This Thread
Two views one controller - by snape - 08-24-2015, 05:16 PM
RE: Two views one controller - by pdthinh - 08-24-2015, 09:43 PM
RE: Two views one controller - by snape - 08-25-2015, 03:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB