Dave Hollingworth

Results 97 comments of Dave Hollingworth

This can be fixed by changing the Router's `add` method to this: ``` public function add($route, $params = []) { $segments = preg_split('/(?[a-z]+)'; } // Convert variables with custom regular...

That's one way to do it yes - if this works for you, then no problem. As for it matching with no language, it could be because of the `+`...

Please can you let me know the full URL that you're using that doesn't match?

To match the http://localhost/posts/index URL, you need a "catch-all" route at the end, after all the others have been defined: `$router->add('{controller}/{action}'); ` Routes need to be added in order of...

This is coming in a new version of the framework that I'm working on at the moment. I don't have a date when it will be ready though I'm afraid....

No date I'm afraid at the moment.

I'm afraid I'm not quite sure what you mean - you want to be able to display the base.html view if you go to example.com/base/index ? Please can you give...

To pass a value in using the URL, first you need to specify it in a route. For example, in the front controller: `$router->add('blogs/show/{id:\d+}', ['controller' => 'Services\Blogs', 'action' => 'show']);...

First you need to specify the name of the variable when you specify the route: `$router->add('blogs/{id:[\w-]+}', ['controller' => 'Services\Blogs', 'action' => 'show']); ` Then in the controller action, you can...

@sidekick-xx thank you so much for your kind words! If you have any questions when you're on the course, please don't hesitate to ask in the Q&A section of the...