Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter with WAMP
#1

[eluser]rcahanap[/eluser]
I've decided to use WAMP on my home pc to test out functions in my controller.

In my view, I have my includes like this:

<link rel="stylesheet" href="/css/960/text.css">

On my regular server, it is OK and it finds the files. But on WAMP it doesn't find it.

What's the way to create these links/includes?

Thanks for your response.

-Roberto
#2

[eluser]CroNiX[/eluser]
Either create a virtual server so that your project gets it's own document_root, or use base_url() in your links.

Code:
<link rel=“stylesheet” href=”<?php echo base_url('css/960/text.css'); ?>">
#3

[eluser]rcahanap[/eluser]
Thanks Cronix.

I ended up putting in an absolute URL and that seems to work in WAMP.

-Roberto




Theme © iAndrew 2016 - Forum software by © MyBB