开发者

mvc procedure question

开发者 https://www.devze.com 2022-12-11 09:47 出处:网络
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

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 some开发者_运维技巧one give me some feedback on this, please.

thanks, Richard


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号