- index.php
- class huihuicms{
- public function display();
- }
- class Article extends huihuicms{
- global $db;
- $list = $db->getAll("select * from table");
- $this->display();
- }
- class Shop extends huihuicms{
- }
- class Admin{
- $this->display();
- }
- $article = new Article();
- //该片段来自于http://www.codesnippet.cn/detail/2208201410299.html
来源: http://www.codesnippet.cn/detail/2208201410299.html