Help -> Sub view folders -> Page Not Found |
[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
[eluser]Samus[/eluser]
[quote author="vjx242" date="1338696820"] Code: $this->load->view('register/index.php'); And this: http://ellislab.com/codeigniter/user-gui...views.html
[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.. |
Welcome Guest, Not a member yet? Register Sign In |