Heya all,
I'm building a site in PHP and MySQL and ran into a problem with PHPlib's templating class. If you know your way around these I'd appreciate some help.
Here's the deal:
I'm calling template.inc (from PHPlib) into the document that will actually sit on our server and be called by a browser client. Then, after some SQL statements and DB connectivity to pull out the right article, title, author, etc., I'm setting the template name and path.
Here's the problem:
PHPlib is putting the article in just fine, as well as the title. So it's searching for {title} and {article} in the template document, and putting them in. BUT, IT'S KILLING ALL MY IMAGE LINKS.
When I just call for my my_template.html, Apache serves it out to me just fine, with images etc. But when I call my_article, which uses that template and issues some SQL to build an page on the fly, the images drop out, to be replaced with ugly broken image link graphics. The
images, just so you know, are not in the same directory as my_template.html but in a subdirectory (/images) right underneath that directory.
Can anyone give me a clue?
Thanks.
-john