Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 330999
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T09:44:01+00:00 2026-05-12T09:44:01+00:00

I am kinda of confused on when I should be making a new controller

  • 0

I am kinda of confused on when I should be making a new controller it seems like every time I make a button that goes somewhere I would need to make a new controller to get the right pathing names.

For instance in this scenario I have a signIn controller.

this controller would have

1. Login view
2. RestPassword view
3. CreateAccount view

So if they click login they go to some other controller(lets call it AccountController) so this will have all the account view and stuff in it.

Now how about the RestPassword view? When it rests the user password I want it to go to a page that shows them that it was a success(most sites seem to do this for example asp.net site if you enter in a email address it will go to another page and tell you that the new password has been sent).

So now what should it be another view? a controller?

If it is a view then the pathing would look like

http://www.site.com/signIn/EmailForgottenPassword

what kind of looks weird to me.

If I make a new controller then I could have

http://www.site.com/EmailForgottenPassword

What looks alot better to me but this controller would have one just one view in it.

Another example would be on this sigIn page their is a Create Account button. Now when clicked this goes to another page that has a list of different accounts.

Should this also be a new controller? When the accounts are listed on this new page they all link to a Registration Controller with many views in it.

so it would be like SignController -> RegistrationController -> RegistrationController.

this would probably get some nice links.

So like I said it seems like to get nice links that make sense you need to constantly make new controller after controller.

So I must be missing something.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T09:44:01+00:00Added an answer on May 12, 2026 at 9:44 am

    In your specific case you one controller would suffice. I would name it the AccountController and add the following actions to it.

    • Login
    • Logout
    • Create
    • CreateConfirmation
    • ResetPassword
    • ResetPasswordConfirmation

    then for the ones you want to have confirmation screens you can use the the Post Redirect Get (PRG) pattern.

    as to the naming. In general you want to use noun for a controller and verbs for actions on those controllers. That way you get nice readable URL’s that make sense. And for the noun you can pick the logical/business term (better then the technical term) that the controller deals with. So accounts, customers, products, blogpost etc…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I somewhat confused because I've read that everything should be possible at IRQL_PASSIVE, but
Im confused regarding which scope should i use. Here i have a module, that
I'm new to django and I'm kinda confused on how to use django's url
Ok, so fb_graph looks pretty simple to use but Im kinda confused as how
Kinda new to iOS, Im also studying Android. kinda confuse on arrays. How to
I am new to web services and i have a question: Should a web
Maybe that's silly, but I'm confused again when trying to find appropriate names for
I'm kind of confused where I should have installed Django 1.3.1 on my Mac.
I am new to the python web dev world and kind of confused about
Right, i'm new to PHP and mySQL, but i've got a few questions that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.