Welcome Guest, Not a member yet? Register   Sign In
base url
#3

[eluser]CroNiX[/eluser]
You shouldn't really use "my" to start your classname unless you are extending a CI Core class. "my" has special meaning in CI and is best to be avoided unless you are using it as intended, which you aren't.

If you are going to do anything in your constructor, you must first tell it that the parent is also construct. __construct shouldn't be capitalized...

Code:
function __construct()
{
  parent::__construct();  //do this before any custom work
  $this->load->helper('url');
}

Are you using an htaccess to make CI work without "index.php" having to be in the URL?
What are the values of $config['base_url'] and $config['index_page']?


Messages In This Thread
base url - by El Forum - 07-30-2012, 03:15 AM
base url - by El Forum - 07-30-2012, 05:11 AM
base url - by El Forum - 07-30-2012, 10:31 AM
base url - by El Forum - 07-30-2012, 10:23 PM
base url - by El Forum - 07-30-2012, 10:26 PM
base url - by El Forum - 07-30-2012, 11:35 PM
base url - by El Forum - 07-31-2012, 12:17 AM
base url - by El Forum - 07-31-2012, 02:01 AM
base url - by El Forum - 07-31-2012, 02:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB