Open falahatiali opened 4 years ago
examine we have this : 'path' => 'download/file/([0-9]+)/{name}',
how we can get these parameters in function ?
function create_routes_customs( $router ) { $router->add_route('download', array( 'path' => 'download/file/([0-9]+)/{name}', 'access_callback' => true, 'page_callback' => 'download' )); } function download(){ //get params }
@falahatiali did you ever figure this out?
examine we have this : 'path' => 'download/file/([0-9]+)/{name}',
how we can get these parameters in function ?