Redirect issues |
Hello again!
Im tryting to redirect one page to another but having a hard time. I added the controller/function in HEADER field and hit submit but keep getting a 404 error and in url space this is what appears: http://culturedkink.com/index.html. Im trying to figure out why index.html show up? Here is the php code for the page: Code: <?php ** EDITED TO USE BBCODE SO IT DOESN'T RUN ON** Im trying to figure why html comes up and not php. Do I create another controller or make changes to another file. BTW register/log is controller and function. , Mekaboo
@Mekaboo,
Why don't you just do a straight redirect ( https://www.codeigniter.com/user_guide/h...l#redirect ). That seems like it would be easier.
What kind of file is the code you posted here? Model, controller, view??? I think you are (still) missing the basics about CodeIgniter.
Your code only shows procedural code, where CodeIgniter is object oriented, and works with classes. Your php file doesn't contain any class. CodeIgniter will process all URL's through index.php and never points to html files. (05-10-2019, 06:39 AM)php_rocs Wrote: @Mekaboo, Ill try this, Thanks (05-10-2019, 10:30 AM)Wouter60 Wrote: What kind of file is the code you posted here? Model, controller, view??? I think you are (still) missing the basics about CodeIgniter. Sorry about that! Its for a view, I copied code from github and added to mine. PHP Code: // chage this to below Try that What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
(05-11-2019, 08:26 AM)InsiteFX Wrote: Thank you so very much I got it now I took the code from here: https://www.codeigniter.com/user_guide/l...ation.html I was missing the form validation |
Welcome Guest, Not a member yet? Register Sign In |