Welcome Guest, Not a member yet? Register   Sign In
merge empty placeholders in routing

Is it possible to merge routes with and without placeholders? If the placeholder is empty, the Method gets called with $1 = null (or any other placeholders)
PHP Code:
$routes->post('save', 'BlogController::SavePost');

The first one could be removed.

Theme © iAndrew 2016 - Forum software by © MyBB