Welcome Guest, Not a member yet? Register   Sign In
Tutorial code not working for site_url and some inconsistencies in site_url
#5

First, I recommend you read the comment for $config['base_url'].
PHP Code:
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH a trailing slash:
|
| http://example.com/
|
| WARNING: You MUST set this value! 
`localhost/ci_host/` is not correct URL.


Quote:And "View article" takes me to following link:
http://localhost/ci_test/index.php/local...new_item_1

But inspect on "View Article" shows following:
<a href="localhost/ci_host/index.php/news/new_item_1">View article</a>
Perhaps you are at `http://localhost/ci_test/index.php/` and the href is `localhost/ci_host/index.php/news/new_item_1`.
So you will go `http://localhost/ci_test/index.php/localhost/ci_host/index.php/news/new_item_1`. Right?
Reply


Messages In This Thread
RE: Tutorial code not working for site_url and some inconsistencies in site_url - by kenjis - 03-01-2017, 03:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB