Installing CI in a subdirectory |
[eluser]nvhack[/eluser]
I will try what you suggested and put the index.php in the subdirectory. IN the meantime, Here is my file structure. Here is my structure: htdocs/ci/ htdocs/ci/images/tpl/ htdocs/ci/system/application/views/ My config is set to $config[’base_url’] = “http://localhost/ci/”; This is running on XAMPP - no .htaccess files I constructed a simple header view the with a css link and a image link. and load that view immediately before the view for the content like so $data['page_title'] = 'Test page'; $data['page_header'] = 'Page title'; $this->load->view('header', $data); $this->load->view('content', $data); Here’s whats happening. If I view the page like this with the trailing slash all is groovey http://localhost/CI/index.php/admin/ If I view the page without the trailing slash like this http://localhost/CI/index.php/admin the view loads but does not load the CSS or the image. A look at the browser source shows that the paths to the css and image are identical. This occurs in Firefox and IE and in other views. |
Messages In This Thread |
Installing CI in a subdirectory - by El Forum - 09-15-2008, 04:31 PM
Installing CI in a subdirectory - by El Forum - 09-15-2008, 07:04 PM
Installing CI in a subdirectory - by El Forum - 09-15-2008, 08:16 PM
Installing CI in a subdirectory - by El Forum - 09-15-2008, 11:22 PM
Installing CI in a subdirectory - by El Forum - 09-16-2008, 01:23 AM
Installing CI in a subdirectory - by El Forum - 09-16-2008, 08:03 AM
Installing CI in a subdirectory - by El Forum - 09-16-2008, 08:54 AM
Installing CI in a subdirectory - by El Forum - 09-16-2008, 10:43 AM
Installing CI in a subdirectory - by El Forum - 09-16-2008, 12:37 PM
Installing CI in a subdirectory - by El Forum - 10-30-2008, 11:35 AM
|