The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Link To CSS File With PHP Re: Link To CSS File With PHP


@sebgonz, you can define it any where before the template.

, yes I agree that @DboG’s way is simple and strait-forward, but it’s not that flexible and not configurable. What if the app is not at the root URL? For example, it’s a news app located at, or a blog app located at, or even more, you have to change it to another location someday…

Anyway, if your app is located at the root and will not be changed, @DboG’s way is recommended.

Hope it’s clear.