I. 创建表结构和测试数据 create table rooms(id int not null auto_increment, name varchar(100), primary key(id)); II.创建 controllers/RoomController.php:
在地址栏中输入: http://localhost/magento/index.php/hotel/room/listing, 页面将输出:
Royal Room
Standard Room |
I. 创建表结构和测试数据 create table rooms(id int not null auto_increment, name varchar(100), primary key(id)); II.创建 controllers/RoomController.php:
在地址栏中输入: http://localhost/magento/index.php/hotel/room/listing, 页面将输出:
Royal Room
Standard Room |