SixPapaCharlie
May the force be with you
- Joined
- Aug 8, 2013
- Messages
- 16,415
- Display Name
Display name:
Sixer
I create an MVC controller class.
I name it "EmanController" and give it a method Index()
Now when I call that page, I just call www....com/Eman
Does it just ignore the "controller" portion of the class name?
I am not using a whole word anywhere in my code for a controller but I can call it from a browser using the whole word minus "Controller"
It doesn't make sense to me.
In the example given, it seems it would make sense if I did:
Public Class Eman since "Eman" is stand alone
But being to call EmanController through a browser using Eman stand alone, rubs me the wrong way. What happens if I create a class just called Controller?
What am I missing?
I name it "EmanController" and give it a method Index()
Now when I call that page, I just call www....com/Eman
Does it just ignore the "controller" portion of the class name?
I am not using a whole word anywhere in my code for a controller but I can call it from a browser using the whole word minus "Controller"
It doesn't make sense to me.
In the example given, it seems it would make sense if I did:
Public Class Eman since "Eman" is stand alone
But being to call EmanController through a browser using Eman stand alone, rubs me the wrong way. What happens if I create a class just called Controller?
What am I missing?