I am working on Code Igniter Project.
I have a php file in the View folder The form has been written as: / P> In the browser, the file is located in config.php I have: Form 'action' means in But when I tried to run it, the I am trying to change the URL to the First of all, then like Because the site url will include both C: \ xampp \ htdocs \ mspn \ application \ views
& lt; Form action = "& lt;? Php echo base_url (). 'Home sign up / main';? & Gt; method =" post "& gt;
localhost / mspn / index.php / signup / main
$ config ['base_url'] = 'localhost / mspn /'; $ Config ['index_page'] = ''; $ Config ['uri_protocol'] = 'auto';
homeSignUp.php in the
Controller folder that has a
main .
submit button was directed to
localhost / mspn / homeSignUp / main . And he said: The object was not found!
action attribute, even then it gives me an error. What am i missing Thank you.
index_page config to:
site_url () :
& lt; Form action = "& lt;? Php echo site_url ('homeSignUp') / main ');? & Gt; method =" post "& gt; Note: It looks like you're using a specific
route , then you
signup / main homeSignUp / main Code instead
base_url and
index_url if any. You do not need to mention the
index.php separator.
No comments:
Post a Comment