[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.