Rather Newish to OOP, Controller question |
Let me try again at explaining what I am trying to do here:
Controller Project -> Class Project -> Method Join($project_id) -> View join with the above code. Once that page is loaded the visitor is asked if they would like to join the project. If they click join: Controller Project -> Class Project -> Method Enter($project_id) -> View join is called and the code inside Method Enter is run. What I am trying to figure out is if this is the best way to do this because I want to also do the following: 1) Prevent direct access to Method Enter via url. So if someone copies the url http://www.site.com/project/enter/1 into their browser it will not run any of the code within the method. 2) Provide error checking and error feedback after the Join button is pressed as well as provide information about things that may have changed due to them joining the project (ex. list how many more projects they can now join, return an error if they are not allowed to join, return an error if the project became full or expired before they pressed join... etc) Is this approach with MVC the correct one so far? I apologize if this is a question that should be easy to figure out via documentation. It just isn't clicking to me and my MVC learning curve still leaves a lot to be desired. |
Messages In This Thread |
Rather Newish to OOP, Controller question - by BamaStangGuy - 05-19-2016, 07:08 PM
RE: Rather Newish to OOP, Controller question - by Wouter60 - 05-19-2016, 10:49 PM
RE: Rather Newish to OOP, Controller question - by BamaStangGuy - 05-19-2016, 11:37 PM
RE: Rather Newish to OOP, Controller question - by BamaStangGuy - 05-20-2016, 12:26 AM
RE: Rather Newish to OOP, Controller question - by InsiteFX - 05-20-2016, 02:45 AM
RE: Rather Newish to OOP, Controller question - by BamaStangGuy - 05-20-2016, 02:59 AM
RE: Rather Newish to OOP, Controller question - by BamaStangGuy - 05-20-2016, 03:07 AM
RE: Rather Newish to OOP, Controller question - by Wouter60 - 05-20-2016, 06:55 AM
RE: Rather Newish to OOP, Controller question - by mwhitney - 05-20-2016, 02:01 PM
RE: Rather Newish to OOP, Controller question - by BamaStangGuy - 05-20-2016, 02:39 PM
|