can not create a new page on site. |
Hello all I'm new to codeigniter. I'm taking over a working site. I want to make a new page on the site and I take an existing page (payment) to start with. I them copy the dir in view and rename it to (payment1). I have payment_view.php and payment1_view.php with in the directory.
I take the controller payment.php and copy it to paymet1 but I can not get to the page payment1.php then I go to website.com/payment1 I get a 404 error. I sure I'm just missing something simple I'm not seeing it. any ideas. Thanks Kirk
Controllers in CI3.X need to have ucfirst type filenames.
Does Payment1.php have an index method? Any payment related routes in /application/config/routes? Anything special in .htaccess that would prevent your /payment1 from being accessible? Does it work if you put the file extension on the url, like this: /payment1.php Does it work with the front controller added, like this: /index.php/payment1 |
Welcome Guest, Not a member yet? Register Sign In |