Welcome Guest, Not a member yet? Register   Sign In
Modular Extensions - HMVC version 5.3

[eluser]smck87[/eluser]
Please help me install HMVC + CI 2.0
Downloaded latest versions of both products.
1. Copied files from codeigniter-modular-extensions-hmvc\third_party
to
application\third_party
2. Copied files from codeigniter-modular-extensions-hmvc\core
to
application\core
3. Created \application\modules\welcome\controllers\
4. Copied welcome.php controller to \application\modules\welcome\controllers\
5. Go to mysite/welcome/ - not working - 404 CI error

Whats wrong? Please help

CI log file:
Code:
DEBUG - 2011-02-13 17:47:07 --> Config Class Initialized
DEBUG - 2011-02-13 17:47:07 --> Hooks Class Initialized
DEBUG - 2011-02-13 17:47:07 --> Utf8 Class Initialized
DEBUG - 2011-02-13 17:47:07 --> UTF-8 Support Enabled
DEBUG - 2011-02-13 17:47:07 --> URI Class Initialized
DEBUG - 2011-02-13 17:47:07 --> Router Class Initialized
ERROR - 2011-02-13 17:47:07 --> 404 Page Not Found -->

[eluser]Basketcasesoftware[/eluser]
I have a base CI install with HMVC and an .htaccess file setup to get rid of the need for the "index.php"
It has a couple of other goodies installed: DataMapper ORM and the UhOh! error handler.

http://www.BasketcaseSoftware.com/pixelc...fender.zip

You will find four modules in the folder:
application/modules/administration
application/modules/members
application/modules/publicstuff
application/modules/welcome

All paths have been tested and verified to work on an XAMPP system.

I did this for another CodeIgniter forum member hence the personalized nature of the file and path, but it's all pretty generic. I guess I could put it up on GitHub, but this was faster. Smile

Let me know if it helps.

[eluser]smck87[/eluser]
seems like it's a problem with my nginx setup, because your package doesn't work too. Thanks

update: problem was with config file. Links didn't work. This solved my problem:
Code:
$config['uri_protocol']    = 'QUERY_STRING';

[eluser]Basketcasesoftware[/eluser]
[quote author="smck87" date="1297647623"]seems like it's a problem with my nginx setup, because your package doesn't work too. Thanks[/quote]

Glad to be of help. What kind of error messages are you getting with my package? How are you testing it? I use http://domain/root That brings up a the usual CI test welcome screen with a simple menu to the other modules (the welcome is in the 'welcome' module of course.)

[eluser]smck87[/eluser]
Actually your package works fine, problem was with links, they didn't work Smile

[eluser]darrentaytay[/eluser]
Is there anyway to have images folders inside modules? So you can have

Module1
- models
- views
- controllers
- images

That would be really nice!

[eluser]Basketcasesoftware[/eluser]
Yep. Create the folder. The tricky part is generating the relative path to it. I think there is some CI helper functions or library features for that. Don't remember which ones off the top of my head at the moment.

[eluser]Glazz[/eluser]
Hello,

I've installed a fresh copy of CI2.0 and installed HMVC, i'm trying to have sub-folders in the controllers folder but it only works one-depth

Quote:
+application
+..modules
+......welcome
+......welcome/welcome.php
+..........welcome/teste
+..........welcome/teste/teste.php
+................welcome/teste/teste2
+................welcome/teste/teste2/teste2.php

i can only go to
Quote:http://localhost/index.php/welcome/teste

if i go to
Quote:http://localhost/index.php/welcome/teste/teste2
i get a 404 error


Can i have multiple sub-folders?

Thanks

- G l a z z

[eluser]InsiteFX[/eluser]
You can only have one sub-directory for each controller under controllers.

InsiteFX

[eluser]Glazz[/eluser]
Ok, it works like CI without HMVC, i know i can achieve this extending the router... i've searched the forum for it, and i did found some topics about that, i tried some of thoses libraries but none of them worked, don't know why, but they didn't worked, it didn't throw any errors..




Theme © iAndrew 2016 - Forum software by © MyBB