Welcome Guest, Not a member yet? Register   Sign In
I am this close to give up on CI
#1

[eluser]KevinLG[/eluser]
CI could put this line in the first page of the manual:
"If your hosting service does not support the PATH_INFO variable needed to serve search-engine friendly URLs, then for your mental health's sake you better not use Codeigniter."

That would have saved me 4 miserable hours.

OK, sorry.

I have set up these:

Code:
$config['index_page'] = "index.php?";
$config['uri_protocol'] = "QUERY_STRING";
$config['enable_query_strings'] = TRUE;
$config['controller_trigger'] = 'c';
$config['function_trigger'] = 'm';

My controller file is delme.php:

Code:
<?php
class Delme extends Controller {
  function index() {
    echo 'Hello!';
  }
  function greeting($name,$times){
    for ($i=0;$i<(int)$times;$i++) {
      echo 'Hello '.$name.', from subfolder!';
    }
  }
}
?&gt;

This controller is placed in a subfolder 'test' of the 'controllers' folder.

My question is what URL I should use to access this "greeting" method?

The url "http://www.my-site.com/index.php?/test/c=delme&m=greeting&name=kevin&times=5" just refused to work. I know why, because I made that sh*t up! And I tried numerous other wierd combinations. Where is the explanatin in the touted excellent manual about this?

Thanks for your help. A newbie's frustration, forgive me please.


Messages In This Thread
I am this close to give up on CI - by El Forum - 10-25-2007, 12:54 AM
I am this close to give up on CI - by El Forum - 10-25-2007, 01:51 AM
I am this close to give up on CI - by El Forum - 10-25-2007, 04:02 AM
I am this close to give up on CI - by El Forum - 10-25-2007, 04:23 AM
I am this close to give up on CI - by El Forum - 10-25-2007, 04:50 AM
I am this close to give up on CI - by El Forum - 10-25-2007, 08:58 AM
I am this close to give up on CI - by El Forum - 10-25-2007, 09:00 AM
I am this close to give up on CI - by El Forum - 10-25-2007, 09:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB