How to build HMVC CodeIgniter on Heroku |
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 ![]()
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
(05-25-2016, 09:21 PM)ciadmin Wrote: You have *not* found a bug. oh, thanks for your information. ![]() ![]() |
Welcome Guest, Not a member yet? Register Sign In |