CSS is being generated? |
[eluser]pickupman[/eluser]
How are you creating your form open tag? Your urls' should work no matter what or how they are created.
[eluser]spletta[/eluser]
Like this... I'm doing some templating which looks like this in my file system: views/includes/footer.php & header.php & template.php When a View has a controller named contact.php then under the /views folder I made a contact/ folder and named the view index.php contact/index.php Code: <div id="contact_form"> controllers/contact.php Code: <?php The only thing I'm doing different from the tutorials I'm following is organizing my views into folders with the same name as the controller.. I'm not sure if that causes this.. well I just tested that actually and it still acts the same. Could it be that I'm naming the views index.php? They seem to work otherwise? Nope I just tested that too... mirk:
[eluser]sqwk[/eluser]
Why don't you just use plain old html and an absolute path to your css file Code: <link rel="stylesheet" href="/system/application/css/style.css" type="text/css" /> Also it looks like your system directory is inside your web_root. If I were you I would use a folder structure like this instead: (more secure) -home -signaleast - application - system - web_root You can configure the absolute paths to the application folder and system in your index.php file. (/home/signaleast/application and /home/signaleast/system) However, you will need to tell your host that the website is now in your web_root folder and not in signaleast. Depending on your host you might be able to do this yourself through a control panel or you might have to phone them up…
[eluser]spletta[/eluser]
I have the chance to edit my apache server.. but I thought if I moved the application folder up one directory to (home/signaleast/codeigniter/application) of course then /system would be at the same level.. that I just need to edit the main index.php to correctly point to the new position of the /application folder? If that's correct.. would it look something like this? Modified Code: |--------------------------------------------------------------- Original Code: <?php
[eluser]pickupman[/eluser]
I would suggest comparing the url of the stylesheets on when it works and when it doesn't. Use firebug or similar. Open the page, copy the url of the page, and the url of the stylesheet. Click on the link of the stylesheet and see where the link goes. Now compare the two or working and not working. Is it not working when you have a 2nd/3rd/4th parameter in the uri?
[eluser]sqwk[/eluser]
That depends where your index.php is. I use something like this: Code: - home/ index.php would then have the path "/home/signaleast/application" or "../application" to reference the application folder. Your choice whether you use an absolute path or a relative one. The css bit would then look like this: Code: <link rel="stylesheet" href="/css/style.css" type="text/css" />
[eluser]sqwk[/eluser]
Also look here on relocating your application or system folder:http://ellislab.com/codeigniter/user-gui..._apps.html
[eluser]spletta[/eluser]
I'm not exactly sure I follow.. The contact.php controller submit function pulls up my views/contact/contact_submitted.php view http://home.signaleast.com/contact/submit When the css is referenced this way it works Code: <link rel="stylesheet" href="<?php echo base_url();?>system/application/css/style.css" type="text/css" media="screen" charset="utf-8"> When its referenced this way.. it doesn't Code: <link rel="stylesheet" href="./system/application/css/style.css" type="text/css" media="screen" charset="utf-8">
[eluser]sqwk[/eluser]
You do not need the <?php echo base_url();?> All it does is replace itself with http://home.signaleast.com/. You can just use a "/" to get the same effect.
|
Welcome Guest, Not a member yet? Register Sign In |