Authored by whb

启动

@@ -87,6 +87,12 @@ class Bootstrap extends Bootstrap_Abstract @@ -87,6 +87,12 @@ class Bootstrap extends Bootstrap_Abstract
87 break; 87 break;
88 case 'list': // 商品列表 88 case 'list': // 商品列表
89 $module = 'Product'; 89 $module = 'Product';
  90 + $url = strtolower($dispatcher->getRequest()->getRequestUri());
  91 + //list列表的index
  92 + if(empty($url) || $url == '/index') {
  93 + $listRequest = new Yaf\Request\Http('/product/list/index');
  94 + $dispatcher->setRequest($listRequest);
  95 + }
90 break; 96 break;
91 case 'sale'://促销 97 case 'sale'://促销
92 $module = 'Product'; 98 $module = 'Product';
1 -; list列表(index)  
2 -routes.productindex.type = "rewrite"  
3 -routes.productindex.match = "/sale"  
4 -routes.productindex.route.module = Product  
5 -routes.productindex.route.controller = List  
6 -routes.productindex.route.action = index  
7 -  
8 ; 折扣专区(SALE) 1 ; 折扣专区(SALE)
9 routes.productsale.type = "rewrite" 2 routes.productsale.type = "rewrite"
10 routes.productsale.match = "/sale" 3 routes.productsale.match = "/sale"