Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] Unable to load my default controllers
#1

[eluser]IamPrototype[/eluser]
I've downloaded MatchBox (newest update) and followed the installation very carefully. If I go http://localhost/new/ all I get is this error:

Code:
Unable to load your default controller. Please make sure the controller specified in your Routes.php file is valid

In my Routes.php the default controller is start which is located in modules -> auth -> controllers -> start.

Can anyone tell me what I'm doing wrong? Smile

PS: Sorry if my english is bad - it's not my native language!
#2

[eluser]TheFuzzy0ne[/eluser]
Chances are, you've not named your class or file correctly, or your default controller is not correct.

Please can you post your default controller (from the config.php), and your controller?
#3

[eluser]IamPrototype[/eluser]
From the config? What config? The default CI config doesn't contain any default controller value. You mean my Routes.php?

Code:
$route['default_controller'] = "start";
$route['scaffolding_trigger'] = "";

As I wrote before: start is located in modules -> auth -> controllers -> start.php

This is my Start.php

Code:
<?php

class Start extends Public_Controller {

    function Start()
    {
        parent::Public_Controller();
    }
    
    function index()
    {
        die('Works');
    }
}

?>
#4

[eluser]Dam1an[/eluser]
Controller files should be all in lower case
he only files you should capitalize are libraries
#5

[eluser]IamPrototype[/eluser]
My file isn't named "Start.php" but "start.php". I just wrote capitalized for making it more visible that it was that file I was talking about.

** Fixed it. Had to change my routes to "auth/start" and not only "start".




Theme © iAndrew 2016 - Forum software by © MyBB