本文整理汇总了PHP中model::process_input方法的典型用法代码示例。如果您正苦于以下问题:PHP model::process_input方法的具体用法?PHP model::process_input怎么用?PHP model::process_input使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类model
的用法示例。
在下文中一共展示了model::process_input方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: model
<?php
include "controller.php";
include "view.php";
include "model.php";
//The model is where all of the logic of the program resides.
$model = new model();
//The View is where everything that is displayed to the user.
$view = new view();
//The Controller is all user input.
$control = new controller();
$model->process_input($control->input($_REQUEST));
$view->change_view($model->appropriate_view());
示例2: model
<?php
include "Controller.php";
include "View.php";
include "Model.php";
$model = new model();
$view = new view();
$control = new controller();
$control->user_input($_POST);
$model->process_input($control->get_user_input());
$view->set_state($model->get_state());
$view->display($control->get_view());