www.gusucode.com > IMGCMS php图片管理系统 v1.0源码程序 > imgcms_v1.0/程序文件-正式版V1.0/core/class/Controller.php
<?php /** * 控制器基类 * @author 许仙 <QQ:1216560669 > * @time 2011-12-27 17:15 * @version 1.0 */ class Controller { protected $db; protected $cache; protected $input; protected $output; public function __construct() { $this->input = &Wee::$input; $this->output = &Wee::$output; if (Wee::$config['cache_auto_start']) { $this->cache = load_cache(); } if (Wee::$config['db_auto_start']) { $this->db = load_db(); } } public function __call($action, $args) { show_msg("$action: The action does not exist"); } }