Welcome Guest, Not a member yet? Register   Sign In
Easy - Help me recall controller?
#1

[eluser]solid9[/eluser]
I know I have encountered this before.
I think I cannot recall it, so please help me.

I have installed a new version of CI-2.1.2 under the directory,
Code:
sample.com/ci212/

And I have created a controller test.php
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Test extends CI_Controller {
public function __construct() {
  parent::__construct();
  
}

function index() {
  echo 'test controller';
}

function get_ver() {
  echo CI_VERSION;
}

}

and saved it as Test.php in the controller folder.

I called it like this,
Code:
sample.com/ci212/test/

But an error occur it says,
Code:
The requested URL /ci212/test/ was not found on this server.

Can you help me recall where did I forgot to configure?

#2

[eluser]solid9[/eluser]
Ah I think I recall now.
I think I need to set the base url.

lol






Theme © iAndrew 2016 - Forum software by © MyBB