How do you pass values between PHP pages for MVC?

后端 未结 6 1330
南方客
南方客 2021-01-01 07:11

How do PHP programs pass values between model, view, and controller pages? For example, if a controller had an array, how does it pass that to the view?

EDIT:

6条回答
  •  遥遥无期
    2021-01-01 07:29

    Usually your controller will create a view object and when it creates that view object it passes the information.

    content = $content;
            include_once('myPage.inc.html');
        }
    }
    
    
    ?>
    

提交回复
热议问题