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

[eluser]Adam Griffiths[/eluser]
I have been racking my brain and CI and Matchbox and the forums and the Matchbox wiki to try and do this, but it just isn't happening so far.

Basically I have 3 applications in my applications folder, it looks like this.

Quote:applications/
-- dev/
---- modules/
------ pages/
-------- controllers/
---------- view.php
-- deploy/
-- test/
system/
index.php -- for /deploy
dev.php -- for /dev
test.php -- for /test

Inside dev/, deploy/ and test/ I have models, views, controllers, libararies etc, everything a normal app would have, just 3 times over.

When I go to index.php/pages/view I should see Hello from the controller! but I get a 404 error.

Does anybody know whats wrong? What needs to be edited or any info I haven't put down here to help a bit more?

It would really help me for my long term goal.

Thank you.
#2

[eluser]Adam Griffiths[/eluser]
I'm still having a problem with configuring 3 application folders with matchbox.


Thanks.
#3

[eluser]wiredesignz[/eluser]
Not sure of your problem because you don't provide much detail, but, View is a reserved word in CI, try changing the controller class name.
#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.
#5

[eluser]BenneX[/eluser]
I've the same problem...

My structure:
Code:
application/
--modules/
----admin/
------controllers/
--------home.php
------views/
----content/
------controllers/
--------content.php
------views/
----static/
------controllers/
--------imprint.php
------views/

I checked every File. There are no differents between the admin/controllers and the static/controllers but I can't open the home.php in the "admin"-module

Problem:
Code:
modules/
--admin/
----controllers/
------home.php --> http://adress.end/admin/home --> #404 Error
----views/
--content/
----controllers/
------content.php --> http://adress.end/content --> works
----views/
--static/
----controllers/
------imprint.php --> http://adress.end/static/imprint --> works
----views/

It doesn't make sense and I'm going to explode >_<

I've tried re-routing - not working
I've tried to rename the "admin"-module to "acp"-module - not working

I hope anyone can help me, before I have been brought to the psycho-doc xD
Thank's in advance!

Greetings from Germany

BenneX

(Sorry for my bad english, my english teacher told me, that I'm not very good...)
#6

[eluser]ConnorD[/eluser]
I have the same problem!!!

Please help!




Theme © iAndrew 2016 - Forum software by © MyBB