Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic route URL #97

Closed
Thlenzi opened this issue Aug 18, 2021 · 2 comments
Closed

Dynamic route URL #97

Thlenzi opened this issue Aug 18, 2021 · 2 comments

Comments

@Thlenzi
Copy link

Thlenzi commented Aug 18, 2021

Hi! The standard route settings are based in this:
$router->add('', ['controller' => 'Home', 'action' => 'index']); $router->add('posts/index', ['controller' => 'Posts', 'action' => 'index']);

@daveh , how can i set the route for dynamic url like: @*, domain.com/@foo, domain.com/@bar ... ???

Have a nice day!

@daveh
Copy link
Owner

daveh commented Aug 19, 2021

I'm not sure what you mean - you can have variables in the route, which can map to the controller and action - have a look at the readme here.

@Thlenzi
Copy link
Author

Thlenzi commented Aug 19, 2021

@daveh , i find a solution in base this your awnser. link

@daveh daveh closed this as completed Aug 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants