Problem CI 1.5.4 with MS4W bundle 2.2.3 |
[eluser]Amier[/eluser]
Hi ALL, I have installed CI on MS4W (map server for windows) bundle 2.2.3 (which contain apache 2.2.4 and php 5.2.1) . it seem CI doesn't respond any class and function when i call it on my browser. when i installed individual package apache 2.2.4 and php 5.2.1, it seem that CI work perfectly. i can call class and function. I can’t load php class or function which i have define in controller, view, model folder. when i point my browser to : http://localhost/index.php/test/ i get “The page cannot be found”. it happens when i use MS4W bundle 2.2.3. on another machine which i installed individual Apache 2.2.4 and php 5.2.1. is there any incompatibility CI 1.5.4 with MS4W bundle 2.2.3 ?
[eluser]Subekti Pranoto[/eluser]
hi Amier, i am facing the same thing. i am doing fresh install, CI 1.5.4 with ms4w 2.2.3. my structure of webroot are: /<webroot> index.php license.txt / system / user_guide when i point my browser to: "http://localhost/index.php", i get message "Welcome to CodeIgniter!". i try to modify "/<webroot>/system/application/controllers/welcome.php" like this: ============================================================================== <?php class Welcome extends Controller { function Welcome() { parent::Controller(); } function index() { $this->load->view('welcome_message'); } function Test() { echo "CI is great"; } } ?> ============================================================================== when i point my browser to "http://localhost/index.php/welcome/test", i get message "The page cannot be found". any one can help me??
[eluser]Subekti Pranoto[/eluser]
Hi Amir, i made a progress. File “/<webroot>/system/application/controllers/welcome.php” like this: ============================================================================== <?php class Welcome extends Controller { function Welcome() { parent::Controller(); } function index() { $this->load->view('welcome_message'); } function Test() { echo "CI is great"; } } ?> ============================================================================== when i point my browser to “http://localhost/index.php/welcome/test”, i get message “The page cannot be found”. when i point my browser to "http://localhost/index.php?c=welocme&m=test", i get the message "CI is great". does anyone can fix the problem to using "http://localhost/index.php/welcome/test" instead of "http://localhost/index.php?c=welocme&m=test" ??
[eluser]Subekti Pranoto[/eluser]
Hi Amier, Please do upgrade from ms4w 2.2.3 to ms4w 2.2.6. File “<webroot>\system\application\config\config.php” like this: ============================================================================== $config[’enable_query_strings’] = TRUE; $config[’controller_trigger’] = ‘c’; $config[’function_trigger’] = ‘m’; ============================================================================== File “/<webroot>/system/application/controllers/welcome.php” like this: ============================================================================== <?php class Welcome extends Controller { function Welcome() { parent::Controller(); } function index() { $this->load->view('welcome_message'); } function Test() { echo "CI is really great"; } } ?> ============================================================================== when i point my browser to “http://localhost/index.php/welcome/test”, i get message “CI is really great”. when i point my browser to “http://localhost/index.php?c=welocme&m=test”, i get the message “CI is really great”. |
Welcome Guest, Not a member yet? Register Sign In |