/** * 解析要连接model的参数 * * @param string $params 指定要连接的数据库和配置项的key, 如mysql['db']这里的params应该为mysql:db */ function __construct($params = '') { parent::__construct(); $this->initModelParams($params); }