![]() |
Help -> Sub view folders -> Page Not Found - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Help -> Sub view folders -> Page Not Found (/showthread.php?tid=52244) |
Help -> Sub view folders -> Page Not Found - El Forum - 06-02-2012 [eluser]Unknown[/eluser] Hey everybody, I'm about 5 minutes into MVC and codeigniter. Everything is coming together nicely however, I'm trying to create this link localhost/ci/register Then my index.php located in the views/register/ folder will open... however I keep getting an error "Object not found!" (xampp) and google is not helping. Can anyone be of assistance? register_controller.php contains Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); Register page (located in views/register/index.php) Code: <?php Help -> Sub view folders -> Page Not Found - El Forum - 06-02-2012 [eluser]dnc[/eluser] Take another 5 and read this: CodeIgniter URLs Help -> Sub view folders -> Page Not Found - El Forum - 06-03-2012 [eluser]Samus[/eluser] [quote author="vjx242" date="1338696820"] Code: $this->load->view('register/index.php'); And this: http://ellislab.com/codeigniter/user-guide/general/views.html Help -> Sub view folders -> Page Not Found - El Forum - 06-03-2012 [eluser]Glazz[/eluser] Try this: Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); Renamed your controller to Register and renamed the function register to index , so you can access localhost/ci/register; Removed .php from the load->view.. |