PHP in INC files - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: PHP in INC files (/showthread.php?tid=27223) |
PHP in INC files - El Forum - 02-04-2010 [eluser]Dirigible[/eluser] Hi all, EDITED. Here's my problem. I'm including an inc file <?include("css/headerlinks.inc"), in which there are links /about/whatwedo. However, the baseurl does not get pre-pended here, as I cannot use php in the inc file. Therefore, I am getting directed to the wrong place: localhost/controller/view instead of localhost/app/controller/view. What's the workaround for this? Simply renaming the inc file to php? Thanks Michael PHP in INC files - El Forum - 02-04-2010 [eluser]danmontgomery[/eluser] Yes... Or configure your webserver to interpret .inc files as PHP. |