Welcome Guest, Not a member yet? Register   Sign In
How to build HMVC CodeIgniter on Heroku
#1

hi everybody,

I'm have 1 project hmvc codeigniter and i want to deploy it on Heroku, but it not work, it warning 404 error
structure my project:

- application
       |...
       |__controller
               |__My_controller.php
               |__Welcome.php
       |__modules
               |__home
                       |__controller
                                |__home.php
                       |__views
                                |__home_view.php

when i set defaul_controller='welcome' in file config.php ===> it run ok
but when i set default_controller='home' =====> it show error 404

because it not find file  if ( ! file_exists(APPPATH.'controllers/'.$this->directory.ucfirst($class).'.php'))    in file system/Router.php.

Who can help me? please's Huh
Reply
#2

Because you need the updated new version of HMVC.

HMVC
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

(05-25-2016, 02:15 AM)InsiteFX Wrote: Because you need the updated new version of HMVC.

HMVC

Thanks for you reply Big Grin , I used CodeIgniter 3.0 and I has found bug, Cause i setting controller and model with lowercase name 'home' so Heroku not find file controller.
Reply
#4

You have *not* found a bug.
CodeIgniter 3 *expects* class names (controllers, models & libraries) to start with a capital letter.
The url might be whatever/home but the classname *must* be Home and be inside controllers/Home.php

http://www.codeigniter.com/user_guide/ge...llers.html
Reply
#5

(05-25-2016, 09:21 PM)ciadmin Wrote: You have *not* found a bug.
CodeIgniter 3 *expects* class names (controllers, models & libraries) to start with a capital letter.
The url might be whatever/home but the classname *must* be Home and be inside controllers/Home.php

http://www.codeigniter.com/user_guide/ge...llers.html

oh, thanks for your information.   Big Grin Big Grin
Reply




Theme © iAndrew 2016 - Forum software by © MyBB