创建yy类
class yy extends CI_Controller { public function __construct() { parent::__construct(); } public function fy() { echo 'home/yy'; } public function fy2() { echo 'home/yy2'; } }
$route['hh/(:num)/(:num)'] = function ($dd, $ee) { print_r($dd); echo '<br>'; print_r($ee); echo '<br>'; if ($dd == 1) return 'home/yy/fy'; if ($dd == 2) return 'home/yy/fy2'; };
访问
http://www.ci3.com/hh/1/55
获得结果
标签:function,逆向,dd,echo,CI3,yy,home,public,路由 From: https://www.cnblogs.com/haokan/p/18399611