Welcome Guest, Not a member yet? Register   Sign In
wampserver in window : CodeIgniter doesn't show my pages
#1

[eluser]absfrm[/eluser]
Hi
I've just moved to CodeIgniter! In my windows I've installed wamp server and when i load the localhost/ci ,
The welcome_message.php will load success.
But , I've created a file named : site.php and have written on :

Code:
<?php

class Site extends Controller {

function index() {
  echo 'something';
}

}
Then , when I load the address : localhost/ci/index.php/site . It shows nothing in firefox and in other browser will get error : server not found

why?

Please help, I'm new in CodeIgniter and this is my first try Smile
Thank you.
#2

[eluser]flacznik[/eluser]
Did you allowed mode REWRITE on your wamp server?
#3

[eluser]absfrm[/eluser]
[quote author="flacznik" date="1369122824"]Did you allowed mode REWRITE on your wamp server?[/quote]
yes. In my httpd.conf
Quote:LoadModule rewrite_module modules/mod_rewrite.so
is enable
#4

[eluser]flacznik[/eluser]
Then I think there might be something wrong with your configuration - check:

$route['default_controller'] = 'ci';

and

$config['base_url'] = 'http://localhost/ci/';

If you didn't place .htaccess in the root folder than you leave $config['index_page'] = 'index.php';
#5

[eluser]absfrm[/eluser]
[quote author="flacznik" date="1369123851"]Then I think there might be something wrong with your configuration - check:

$route['default_controller'] = 'ci';

and

$config['base_url'] = 'http://localhost/ci/';

If you didn't place .htaccess in the root folder than you leave $config['index_page'] = 'index.php';[/quote]

of course there is no .htaccess in my ci directory!
directories are : application , system , user-guide
files : index.php
#6

[eluser]absfrm[/eluser]
any other idea?
#7

[eluser]absfrm[/eluser]
It seems that the method is wrong... I'm trying true methods




Theme © iAndrew 2016 - Forum software by © MyBB