Welcome Guest, Not a member yet? Register   Sign In
HMVC and application folder outside root gives 404 not found
#1

Hello,

I have CI3 with the following structure

application
public_html
system


Now I have HMVC for CodeIgniter 3 with the following structure

application
public_html
/components
/components/photalbums/config
/components/photalbums/config/routes.php
/components/photalbums/controllers
/components/photalbums/controllers/com_photoalbum.php
/components/photalbums/models
/components/photalbums/views

system

Now I have in the components/photalbums/config/routes.php

$route['test'] = 'com_photoalbum';

When going to localhost/test I get an 404
Probably $config['modules_locations'] = array(APPPATH . '../components/' => '../../components/',); in config is not set correct.
I tried alot with Document Root etc

---

In version CI2 with HMVC for CI2 I have the application directory in the public_html.
Then with $config['modules_locations'] = array(APPPATH . '../components/' => '../../components/',); it is working

Version 2 structure is


public_html
application
/components
/components/photalbums/config
/components/photalbums/config/routes.php
/components/photalbums/controllers
/components/photalbums/controllers/com_photoalbum.php
/components/photalbums/models
/components/photalbums/views

system

Anyone an idea ?
Reply


Messages In This Thread
HMVC and application folder outside root gives 404 not found - by Krycek - 04-02-2015, 06:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB