Welcome Guest, Not a member yet? Register   Sign In
getting routing to work
#1

I'm migrating a project from CI 2.x to CI 3.0 and hitting roadblocks in routing

Home page loads fine. Anything beyond that results in Class CI_Controller not found.

Here is the snippet from application/config/routes.php

$route['default_controller'] = 'index';
$route['404_override'] = 'pages/view';
$route['404'] = 'index/page_404';
$route['translate_uri_dashes'] = FALSE;

We have a number of modules and nothing in application/controllers.

I have followed the instructions in the upgrade document, especially paying close attention to step 9.

Any ideas would be welcome.
Reply
#2

You say you have nothing in application/controllers.
I wonder how your application has ever worked, then.
Based in the information you provide, there must be at least 2 controllers in your application/controllers folder:
Index.php
Pages.php
Both with firstcaps, like any other class in application/models and application/libraries.
Reply
#3

(This post was last modified: 09-25-2016, 04:53 AM by InsiteFX. Edit Reason: add link )

He's using Modules.

Who created the modules and what version are they?

If they are modules created by @Wiredesignz then you need to download
the CI ver 3 of them from below.

Modular Extensions - HMVC
What did you Try? What did you Get? What did you Expect?

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

(09-25-2016, 04:46 AM)InsiteFX Wrote: He's using Modules.

Who created the modules and what version are they?

If they are modules created by @Wiredesignz then you need to download
the CI ver 3 of them from below.

Modular Extensions - HMVC

Yes, we are using modules. 
Initially, I did download and update the files in core and third_party. 
I re-did that now and my application is progressing further. I must not have copied the files correctly the first time

thanks
Krish
Reply




Theme © iAndrew 2016 - Forum software by © MyBB