11-27-2016, 01:37 AM
(This post was last modified: 11-27-2016, 02:20 AM by wolfgang1983.)
I have a background image
htdocs > projectname > assets > images > bg3.png
And on my css
If I type in
The background image shows up fine
How ever if I type up
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?
![[Image: 33P4rOFKqx1A.png]](https://ibin.co/33P4rOFKqx1A.png)
And
![[Image: 33P5BN7yCLMC.png]](https://ibin.co/33P5BN7yCLMC.png)
The base URL is set $config['base_url'] = 'http://localhost/fourm/';
htdocs > projectname > assets > images > bg3.png
And on my css
Code:
#header {
margin-bottom: 2.5rem;
width: 100%;
background: url('assets/images/bg3.png') repeat scroll 0 0;
min-height: 380px;
color: #312822;
}
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?
![[Image: 33P4rOFKqx1A.png]](https://ibin.co/33P4rOFKqx1A.png)
And
![[Image: 33P5BN7yCLMC.png]](https://ibin.co/33P5BN7yCLMC.png)
The base URL is set $config['base_url'] = 'http://localhost/fourm/';
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!