Hi everyone, I just started with codeigniter, created a signup page routed its URL in routes.php which makes the URL as
http://localhost/ciproject/signup
in signup view created a form and in its action I passed user/register user is controller name and register is function name now as I kept form validation so if validation fails then I m redirecting to signup page, for redirecting I wrote
$this->signup();
with errors after submission, which is working. but at this time in url, it is not showing
http://localhost/ciproject/signup
instead of this it is showing
http://localhost/ciproject/welcome/register
but I want show URL like this
http://localhost/ciproject/signup
with validation error anyone can help?
please help.
Question and answer is powered by AnsPress.io