Welcome Guest, Not a member yet? Register   Sign In
Yet another CodeIgniter noob, getting nothing but 404 errors from tutorials...
#5

[eluser]Unknown[/eluser]
I created a 'server' directory next to public_html and in case I needed to add to it, designated a codeigniter directory within containing all the codeigniter files.
Then I found adding this useful in index.php:

Code:
define("CI_ROOT", rtrim($_SERVER["DOCUMENT_ROOT"], "/public_html") . "/server/codeigniter");

then for example in Pages:

Code:
if (!file_exists(CI_ROOT . '/application/views/pages/' . $page . '.php')) {


Messages In This Thread
Yet another CodeIgniter noob, getting nothing but 404 errors from tutorials... - by El Forum - 12-29-2013, 06:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB