CodeIgniter Forums
wampserver in window : CodeIgniter doesn't show my pages - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: wampserver in window : CodeIgniter doesn't show my pages (/showthread.php?tid=58152)



wampserver in window : CodeIgniter doesn't show my pages - El Forum - 05-21-2013

[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.


wampserver in window : CodeIgniter doesn't show my pages - El Forum - 05-21-2013

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


wampserver in window : CodeIgniter doesn't show my pages - El Forum - 05-21-2013

[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


wampserver in window : CodeIgniter doesn't show my pages - El Forum - 05-21-2013

[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';


wampserver in window : CodeIgniter doesn't show my pages - El Forum - 05-21-2013

[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


wampserver in window : CodeIgniter doesn't show my pages - El Forum - 05-21-2013

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


wampserver in window : CodeIgniter doesn't show my pages - El Forum - 05-21-2013

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