CodeIgniter - When using $route['(:any)'] = 'pages/view/$1' how to use other controllers?

后端 未结 3 685
死守一世寂寞
死守一世寂寞 2020-12-12 02:30

When using

$route[\'(:any)\'] = \'pages/view/$1\';

and I want to use other controllers in my routing for example:

$route[\'del         


        
3条回答
  •  忘掉有多难
    2020-12-12 03:04

    Its hundred percent working

    $route['(:any)'] url is placed last in your routes file
    
    $route['(:any)/company_product_deal_detail']    =   "mypage_product_picture/deal_detail/$1";
    $route['(:any)/company_service_deals/(:any)']    =   "mypage_service_deal_list/index/$1";
    $route['(:any)/company_service_deals']    =   "mypage_service_deal_list/index/$1";
    
    $route['(:any)']    =   "company/index/$1";
    

提交回复
热议问题