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

Double signup in url when submitting form #123

Open
Zhaniya110 opened this issue Oct 8, 2023 · 1 comment
Open

Double signup in url when submitting form #123

Zhaniya110 opened this issue Oct 8, 2023 · 1 comment

Comments

@Zhaniya110
Copy link

Hi!, I tried addding special controllers for sign up but it did not help. As the result I get a url that looks like that:
http://localhost/signup/signup/create
While using the dunamic one
$router->add('{controller}/{action}');
I still get the same error:


Fatal error
Uncaught exception: 'Exception'

Message: 'No route matched.'

Stack trace:

#0 C:\Users\zmeyr\Desktop\php-mvc\public\index.php(36): Core\Router->dispatch('signup/signup/c...')
#1 {main}
Thrown in 'C:\Users\zmeyr\Desktop\php-mvc\Core\Router.php' on line 130

I am not sure why it will not submit data to the database
Sincerely, Zhaniya

@daveh
Copy link
Owner

daveh commented Oct 9, 2023

I just answered this in the Q&A section on the course this relates to on Udemy, please see my answer there.

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