Codeigniter Controller function in a view [closed]
- by Y2ok
I'm using CodeIgniter and I have two controllers:
Index controller that loads the website view
Personal panel controller that will do all login, registration and personal panel functions. (Functions are loaded from models.)
The problem is that I don't have any clue how to insert that controller in a view file or in the other controller file so that it would load when I press submit button for a form or if the session's loggedin is with value true.