Question

I am borrowing some codeigniter authentication library and try to integrate it with my mvc version. My version initiates breadcrums in the basecontroller and every module has it's own controller that extends it.

What I want to know is if I am submitting my login form, then my submit action will be /controller/function. But, I don't want the function to appear in the breadcrumbs, how is this normally done. As I am writing this, I am thinking that I can run all the logic threw the default index function.

On the other hand, you want to be able to call on functions directly.

The question is how this is normally done in an mvc architecture Could someone give me some feedback on this, please.

thanks, Richard

Was it helpful?

Solution

Once you authenticate are you redirecting the user to where they were previously or the index page on the website?

Usually the login controller doesn't actually have a view, it just authenticates and forwards you to either the login form if you are not authenticated, or a logged in page if the person is authenticated.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top