本文整理匯總了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());