Jansen
Member since Feb 25, 2014
- Profile: /members/11646-jansen.htm
- Comments: 2
Recent Blog Comments By Jansen
-
A Better Understanding Of MVC (Model-View-Controller) Thanks To Steven Neiland
Posted on Feb 25, 2014 at 11:16 AM
@Steven, Clear comment. I think you are right. My thoughts about it change by the hour. It makes sense. eg. That way i can use a user-, basecontent- and maincontent-model in my controller. And the database connection i place in a shared-by-the-models database class. correct?... read more »
-
A Better Understanding Of MVC (Model-View-Controller) Thanks To Steven Neiland
Posted on Feb 25, 2014 at 9:03 AM
How i see it... index > controller > model > view * * arrow is direction of vision. example: 1. The index retrieves the uri and picks a controller. 2. Controller controls the model. ----- if ($this->model->validUser($_GET['user'])) { $this->model->prepareNavMenu(); ... read more »