The file is located in template.php. The directory it’s in is called views and a directory called public is at the same level as views. So I go one directory up to get to public and then there’s a directory called stylesheets in public and a file called application.css within that. So I am not sure why the browser can’t find the stylesheet.
Is template.php the file requested by the browser? The stylesheet has to be defined relative to the file that is requested by the browser, so if you were to have an index.php in another directory and that index.php includes your template.php you need to specify the CSS relative to index.php, not to template.php
Thanks for the response. When the user goes to the home page, for example, it triggers the show method of the categories class (which is itself a ‘controller’ in mvc). That show method populates show.php in categories directroy with data depending on what posts have been associated with the category ‘home’. Then that show.php results gets put into template.php, which contains the header info and this gets called:
Ah you’re using CodeIgniter? In that case you most likely have an index.php in de document root that all requests are routed through (using a .htaccess file). The ‘public’ directory is your document root I assume?
If so, try /stylesheets/application.css instead of …/public/stylesheets/application.css