Hello I am following a tutorial on sitepoint about MVC (Model View Controller). However the instructions are not 100% clear in that tutorial, and the comment section has been closed.
On this tutorial https://www.sitepoint.com/the-mvc-pattern-and-php-1/ it says to setup relationships betwee model, view and contoller. It provides the code but does not state where this code should go or in what file it should go. First they tell us make model using code on tutorial, than make view file, than make controller file all codes for files they provided in tutorial. Then they say use following code to make relationships, but they do not state where to place this code.
<?php
$model = new Model();
$controller = new Controller($model);
$view = new View($controller, $model);
echo $view->output();
I would appreciate any assistance you can provide or advise me on as to where this particular code goes for setting up the relationships please.
I sincerely apologise if this is not the right place to ask. I seem to get banned from posting questions for a period of 3 days when I ask questions, and I am not sure as to why that reason could be.
So accept my apologise if this is another one of those posts.
Thanks in advance.