Scaffolded item not functioning properly #15500
-
Hi! I am completely new to Phalcon, and after installing it along with the dev-tools I scaffolded a database table users. It created a model and a controller, along with some views for the CRUD. Now if I try to add a user using the provided interface the url will jump to http://0.0.0.0:8000/users/users/create (note the double users) and the user will not be added to the database. If I try to search for a user, it will work the first try. With the url being http://0.0.0.0:8000/users/search?id=1&name=&role_id= (I searched for a id of 1). Please help |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Found the solution, the culprit resides in the scaffolded form: Should be: Should I report this as a bug or something? |
Beta Was this translation helpful? Give feedback.
Found the solution, the culprit resides in the scaffolded form:
<form action="users/create" class="form-horizontal" method="post">
Should be:
<form action="/users/create" class="form-horizontal" method="post">
Should I report this as a bug or something?