Welcome Guest, Not a member yet? Register   Sign In
preg_match(): Compilation failed: missing closing parenthesis at offset 19
#1
Photo 

preg_match(): Compilation failed: missing closing parenthesis at offset 19 search →

SYSTEMPATH/Router/Router.php at line 384

Hello guys,
Recently started migrating my old project to CI4.
the project is modulated into
Admin,
Api
and Front

i have routes defined in each module
However i am now faced with routing error

PHP Code:
/*
 * --------------------------------------------------------------------
 * Router Setup
 * --------------------------------------------------------------------
 */
$routes->setDefaultNamespace('App\Controllers');
$routes->setDefaultController('Home');
$routes->setDefaultMethod('index');
$routes->setTranslateURIDashes(false);
$routes->set404Override();
$routes->setAutoRoute(true);
$routes->setPrioritize(false);

/*
 * --------------------------------------------------------------------
 * Route Definitions
 * --------------------------------------------------------------------
 */

// We get a performance increase by specifying the default
// route since we don't have to scan directories.
$routes->get('/''HomeController::index');
$routes->get('cms''CmsController::index');

$routes->get('pages/d/(:any)-(:num)\.html''PageController::page/$1/$2');
$routes->get('about-us''PageController::about');
$routes->get('contact-us''PageController::contact_page');
$routes->post('contact-form''PageController::contact_form');
$routes->get('disclaimer''PageController::disclaimer');
$routes->get('privacy-policy''PageController::privacy');
$routes->get('results''PageController::results');

//API ROUTES 
Reply
#2

What version are you using? There's nothing on line 384 on current develop branch.
https://github.com/codeigniter4/CodeIgni...r.php#L384
Reply




Theme © iAndrew 2016 - Forum software by © MyBB