Welcome Guest, Not a member yet? Register   Sign In
Matchbox problem
#4

[eluser]Adam Griffiths[/eluser]
Ok, here is my directory structure.

Quote:application/
-- dev/
---- config/
---- errors/
---- helpers/
---- hooks/
---- language/
---- libraries/
---- modules
------ controllers/
-------- show.php
------ models/
------ views/
-- deploy/
---- config/
---- errors/
---- helpers/
---- hooks/
---- language/
---- libraries/
---- modules
------ controllers/
-------- show.php
------ models/
------ views/
-- test/
---- config/
---- errors/
---- helpers/
---- hooks/
---- language/
---- libraries/
---- modules
------ controllers/
-------- show.php
------ models/
------ views/
system/
static/
-- _css/
-- _img/

The contents of show.php

Code:
<?php

class Show extends Controller
{
    function Show()
    {
        parent::Controller();
    }
    
    function index()
    {
        echo("Hello from the controller!");
    }
}

/* End of file show.php */
/* Location: /applications/deploy/modules/pages/controllers/ */

When I go to index.php/pages/show I get a 404 error. I have no idea whats wrong. I have this in my routes file...

Code:
$route['default_controller'] = "pages/show";

That doesn't load the controller by default, which results in a 404 error aswell.

Am I going to the right URI? Is the directory structure correct?

Thanks.


Messages In This Thread
Matchbox problem - by El Forum - 07-29-2008, 04:41 PM
Matchbox problem - by El Forum - 07-30-2008, 03:09 PM
Matchbox problem - by El Forum - 07-30-2008, 04:51 PM
Matchbox problem - by El Forum - 07-31-2008, 03:27 AM
Matchbox problem - by El Forum - 09-16-2008, 05:07 AM
Matchbox problem - by El Forum - 11-02-2008, 11:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB