本文整理汇总了PHP中ApplicationController::doControl方法的典型用法代码示例。如果您正苦于以下问题:PHP ApplicationController::doControl方法的具体用法?PHP ApplicationController::doControl怎么用?PHP ApplicationController::doControl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ApplicationController
的用法示例。
在下文中一共展示了ApplicationController::doControl方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: EntryDAL
require_once "controller/ApplicationController.php";
require_once "model/Entries.php";
require_once "view/DateTimeView.php";
require_once "view/LayoutView.php";
require_once "view/RegistrationView.php";
require_once "view/EntryView.php";
require_once "view/ViewEntryView.php";
if (Settings::DISPLAY_ERRORS) {
error_reporting(-1);
ini_set('display_errors', 'ON');
}
//session must be started before LoginModel is created
session_start();
//Dependency injection
$ed = new EntryDAL();
$m = new LoginModel();
$e = new Entries($ed);
$vev = new ViewEntryView();
$v = new LoginView($m, $e);
$rv = new RegistrationView();
$ev = new EditView();
$rc = new RegisterController($rv, $v);
$ec = new EntryController($ev, $v);
$lc = new LoginController($m, $v, $vev);
$ac = new ApplicationController($lc, $rc, $ec);
//Controller must be run first since state is changed
$ac->doControl();
//Generate output
$dtv = new DateTimeView();
$lv = new LayoutView();
$lv->render($m->isLoggedIn($v->getUserClient()), $v, $dtv, $rv, $ev, $vev);