wrong image and css files paths in view files |
[eluser]cb951303[/eluser]
hello there everyone. I have a simple main.php in my view folder like this: Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" Controller cmain.php looks like this (it's also configured as the default controller): Code: <?php Here's how my http server root looks like: Code: public_html/ Here is my problem: When I go to the address: http://localhost/ or http://localhost/index.php everything is fine. The page loads and renders normally. But when I go to the address http://localhost/index.php/ or http://localhost/index.php/cmain/index, the page loads but the image and styling doesn't show (my guess is it can't find logo.png and test.css) I tried to move image and css files to view and controller directories but no luck. Any help would be appreciated Thanks in advance |
Welcome Guest, Not a member yet? Register Sign In |