init.php 1.0 KB

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * 本文件创建一个 app 示例,并且通过执行 $app->loadCommon() 方法创建名为 tester 的commonModel对象。
  4. * This file build a app instance and provide a instance of commonModel named as tester by $app->loadCommon().
  5. *
  6. * All request of entries should be routed by this router.
  7. *
  8. * @copyright Copyright 2009-2017 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
  9. * @license ZPL(http://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  10. * @author Guanxing <guanxiying@easycorp.ltd>
  11. * @package ZenTaoPMS
  12. * @version $Id: $
  13. * @link http://www.zentao.net
  14. */
  15. /* Set the error reporting. */
  16. error_reporting(0);
  17. /* Load the framework. */
  18. include '../framework/router.class.php';
  19. include '../framework/control.class.php';
  20. include '../framework/model.class.php';
  21. include '../framework/helper.class.php';
  22. $app = router::createApp('pms', dirname(dirname(__FILE__)), 'router');
  23. $tester = $app->loadCommon();