Two views one controller |
Hey!
I just have one controller:
And two views:
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 (08-24-2015, 05:16 PM)snape Wrote: Hey!One controller can have as many methods as you want. Maybe I show a skeleton: PHP Code: class Students extends CI_Controller You can read more http://www.codeigniter.com/user_guide/ge...ml#methods |
Welcome Guest, Not a member yet? Register Sign In |