我们先来设计好他的数据库结构:
数据库设置好了,那么就到他的控制器了,我们来到 D:phpStudyWWWshopWEBAdminController 目录下创建一个 CateController.class.php 的控制器:
代码如下所示:
然后我们来D:phpStudyWWWshopWEBAdminView 创建一下 Cate 他的模版:
效果如下所示: