Welcome Guest, Not a member yet? Register   Sign In
URI Problem
#1

[eluser]oysterking[/eluser]
Newbie here. I know, here we go again. I searched the forum and could not find an exact answer. Sorry if this is a repeat question.

I am just beginning the CI framework. I am using a wamp webserver. I am currently going down through the table of contents. I am at the part on Controllers. Could someone please help me with this error.

Fatal error: Class 'Controller' not found in C:\wamp\www\Jxxxx\CodeIgniter\CodeIgniter_1.6.3\framesys\application\controllers\blog.php on line 2

I have changed the Base Site URL to $config['Jxxxx'] = 127.0.0.1/Jxxxx/;

since I am working locally and I am still in production. is this correct or should it be $config['C:\wamp\www\Jxxxx\']?
#2

[eluser]louis w[/eluser]
Why did you rename the array key?

E.g. $config[’Jxxxx’]
#3

[eluser]oysterking[/eluser]
I was masking, I thought it was supposed to be the name of my root folder...
#4

[eluser]louis w[/eluser]
The key needs to stay the same, that's how CI can access it. Just change the value.

$config['base_url'] = 127.0.0.1/Jxxxx/;

For more flexability, generate it automatically. This is what I have:

$config['base_url'] = (dirname($_SERVER['SCRIPT_NAME']) == '/') ? '/' : dirname($_SERVER['SCRIPT_NAME']).'/');
#5

[eluser]oysterking[/eluser]
No Joy

Fatal error: Class 'Controller' not found in C:\wamp\www\Jxxxx\blog.php on line 2




Theme © iAndrew 2016 - Forum software by © MyBB