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

[eluser]xwero[/eluser]
There is a hosting service that doesn't support path_info ??? Even free hosters allow path_info. I even believe it's a part of the http protocol.

The first mistake you made is the question mark for the index_page. If there is a querystring the question mark will be added automatic.

The second mistake is not having a constructor in your controller
Code:
class Delme extends Controller {

function Delme()
{
    parent::Controller();
}

function index() {
echo 'Hello!';
}

function greeting($name,$times){
for ($i=0;$i<(int)$times;$i++) {
echo 'Hello '.$name.', from subfolder!';
}
}
}

The third mistake is your url. I don't know how the querystring is if you put the controller in a subfolder but i guess the url would look more like

http://www.my-site.com/index.php?c=test&...in&times=5

Try the controller in the controller directory with the url

http://www.my-site.com/index.php?c=delme...in&times=5

This should work


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