用户
 找回密码
 入住 CI 中国社区
搜索
查看: 2499|回复: 0
收起左侧

[HELP] 关于适配器的使用

[复制链接]
发表于 2011-7-2 17:37:13 | 显示全部楼层 |阅读模式
The child classes, the drivers themselves, can then be called directly through the parent class, without initializing them:
$this->some_parent->child_one->some_method();
$this->some_parent->child_two->another_method();
以及
适配器目录和文件结构布局的例子:
/application/libraries/Driver_name
Driver_name.php
drivers
Driver_name_subclass_1.php
Driver_name_subclass_2.php
Driver_name_subclass_3.php

这怎么理解,如何来使用,谁能举一个简单的例子吗?

本版积分规则