Jump to content
Larry Ullman's Book Forums

rhender

Members
  • Posts

    5
  • Joined

  • Last visited

rhender's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Yeah, using the absolute path definitely works. Although I just had to add the :8888 part to your css file link, just to be clear for anyone else reading... but yeah that worked... I just figured that as this example goes on, that hard coding the links would be a problem... but I don't know... ??? EDIT: and also, when I go live, it seems that I would have to change a ton of hardcoded links too...
  2. answer to your 1st question... apologies... the css file is within the css folder the file that links to it (header.html) is within the includes folder the includes folder and css folder are both on the same level (within the ECOM_2 folder, which holds everything for the site... I don't know how to place folders on the same level as the root directory with GoDaddy... that is why I am doing it this way)
  3. <link href="/css/style.css" rel="stylesheet" /> That is what the link to the css file looks like - exactly out of the EXAMPLE #2 - in the header.html (which is in the includes folder) I took all of the files inside of the "html" folder from the downloaded code, and placed it in my folder called "ECOM_2" which holds all of the files for this example on my local server. Here is one of the links from the nav... <li><a href="/cart.php"><img alt="" src="/images/icon-cart.gif" /></a></li> again.... straight from the header.html file which I downloaded from Larry's code. When I hover over these links to see where they are sending me... it shows the following structure localhost:8888/cart.php ... so it is missing the ECOM_2 folder for some reason... yes I do believe I have the mod_rewrite on, as I believe it is enabled in the .htaccess file, exactly as in the example... I didn't change any of that. hmmm...... thanks for responding !!!
  4. Hello, I am enjoying the book Larry, and am very excited about having purchased it. I have just started the 2nd example and have already hit a snag. I created a folder called 'ECOM_2' to hold all of the files, and I'm using MAMP to develop locally. Here are my constants as I have them in the config file for URI and URL, define ('BASE_URI', '/Users/myname/Desktop/Main-Folders/LOCAL_SITES/ECOM_2/'); define ('BASE_URL', 'localhost:8888/ECOM_2/'); ... with those setting, the css link is broken, and all links seem to broken... so I'm assuming that I have typed in the BASE_URL setting incorrectly. Could anyone shed some light on this for me? thanks so much,
×
×
  • Create New...