Hi, I have a template with a form in it. the action is a url ( /user/display ). I also have a route handler /user/display But when I submit the form, the url on the website change to /user/display , but the browser cannot display it. 'This webpage is not available'. The log file says looking for /user/display/index But when I reload the page, it works as expected. Any ideas why when first time to load the page, it doesn't work, there is /user/display route, why it is looking for /user/display/index which doesn't exist? Many thanks, Dan
2015-09-14 18:06 GMT+03:00 Dancer New <dancerfan2015@gmail.com>:
Any ideas why when first time to load the page, it doesn't work, there is /user/display route, why it is looking for /user/display/index which doesn't exist?
I think, your form's method is POST, but your route is GET-route. Wbr, -- Kõike hääd, Gunnar
On Mon, Sep 14, 2015 at 4:10 PM, WK <wanradt@gmail.com> wrote:
2015-09-14 18:06 GMT+03:00 Dancer New <dancerfan2015@gmail.com>:
Any ideas why when first time to load the page, it doesn't work, there is /user/display route, why it is looking for /user/display/index which doesn't exist?
I think, your form's method is POST, but your route is GET-route.
Exactly what you said. Thank you so much! Fixed now.
Dan
participants (2)
-
Dancer New -
WK