URI confusion - Is CodeIgniter trying too hard? |
[eluser]MikeL85[/eluser]
Here’s a bit of a maybe silly question but… how do I reference a file outside of the CI project? Is that easy enough to do? I keep having a problem. I think CI is trying to be helpful here and that’s actually causing the problem. This code; Code: href='".$growing_path."/".$child."' Will produce something like this; http://example.com/publications/level_on...evel_three Which is almost correct. I just want to add a “/content” folder in there. But when I change it to; Code: href='content".$growing_path."/".$child."' I get this; http://example.com/mike/CodeIgniter_2.1....evel_three And I don’t know why…. Is there a helper or something I should wrap my href in?
[eluser]TheFuzzy0ne[/eluser]
That has nothing to do with CI. Try using an absolute path, or try prefixing your URL with a '/'. Code: href="<?php echo "/content{$growing_path}/{$child}"; ?>" |
Welcome Guest, Not a member yet? Register Sign In |