daveh / php-mvc

A simple PHP model-view-controller framework, built step-by-step as part of the "Write PHP like a pro: build an MVC framework from scratch" course on Udemy.
https://davehollingworth.com/go/phpmvc/
MIT License
782 stars 311 forks source link

error in router #89

Closed othmanekahtal closed 3 years ago

othmanekahtal commented 3 years ago

Fatal error Uncaught exception: 'Exception'

Message: 'Method newAction not found in controller App\Controllers\signup'

Stack trace:

0 C:\Users\admin\Desktop\php-mvc\Core\Router.php(121): Core\Controller->__call('new', Array)

1 C:\Users\admin\Desktop\php-mvc\public\index.php(32): Core\Router->dispatch('signup/new')

2 {main}

Thrown in 'C:\Users\admin\Desktop\php-mvc\Core\Controller.php' on line 52 what is the issue here ?

daveh commented 3 years ago

Do you have a method called newAction in your signup controller?

othmanekahtal commented 3 years ago

I forgot it , Problem fixed thank you soo much devah😄