router class not returning an array seems like a regex issue

The url is /mvc/public/ which is begin and end with a slash, so the regex doesn’t match.

Fixed with:

"/^\/(?P<controller>[a-z-]+)\/(?P<action>[a-z-]+)\/$/"

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top