CodeIgniter Forums
can not create a new page on site. - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Model-View-Controller (https://forum.codeigniter.com/forumdisplay.php?fid=10)
+--- Thread: can not create a new page on site. (/showthread.php?tid=63524)



can not create a new page on site. - kirkgroome - 11-09-2015

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


RE: can not create a new page on site. - skunkbad - 11-09-2015

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