我现在想要配置出这样一个url,需要怎么定义路由规则?news/代表唯一的分类别名。代表分页的页码。
现在做了这样的配置:
'rules'=>array(
'index'=>'site/index',
'all' =>'house/base/index',
'news//index'=>'news/list',
'news/list/-'=>'news/list',
#'news//page/'=>'news/list',
#'//'=>'/',
#'/'=>'>controller>/',
),
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号