![]() |
[Solved] Background Image Not Showing Up with HMVC - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: [Solved] Background Image Not Showing Up with HMVC (/showthread.php?tid=66744) |
[Solved] Background Image Not Showing Up with HMVC - wolfgang1983 - 11-27-2016 I have a background image htdocs > projectname > assets > images > bg3.png And on my css Code: #header { If I type in Code: http://localhost/forum/ The background image shows up fine How ever if I type up Code: http://localhost/forum/common/home The image does not show up as shown in images at bottom. I use HMVC and Codeigniter application > modules application > modules > common > controllers > application > modules > common > controllers > Home.php Question why when I type in a url with common/home the background image will not show up how to solve this? ![]() And ![]() The base URL is set $config['base_url'] = 'http://localhost/fourm/'; RE: Background Image Not Showing Up with HMVC - wolfgang1983 - 11-27-2016 Found issue it was because I did not delete my Home.php in application > controllers > Home.php and since i had the same name in another was conflict now Solved. RE: [Solved] Background Image Not Showing Up with HMVC - marksman - 11-27-2016 From: background: url('assets/images/bg3.png') repeat scroll 0 0; To: background: url('/assets/images/bg3.png') repeat scroll 0 0; |