Hi all. i am currently redesigning our 1000 page static site to use php/mysql with the assistance of templates.inc. i have all non-static info (some meta tags and body content) stored in mysql tables, and my template engine pulls the info and sticks it all in to place. simple enough.
i just finished writing a simple site search engine to browse for keywords in the same tables the content is pulled from. the search code is around 40 lines.
right now, the only way i know of to get it to work is to open my .ihtml template file, manually replace all my {template_holes} for meta info, stick my search code into the {page_content} slot and save the whole thing as search.php3.
i don't like this solution. it's the one file in my system that has html and php all mixed together.
what i'd really like to do is have a file called search.php3 that is just my short template-hole-plugging engine that either includes my php search code as a file, or a global, or pulls it from the database, etc. and puts it in same .ihtml template that's used for the rest of the site.
i just feel so icky when my php and html live in the same file! i stay up at night thinking "man oh man, that messy html is really bringin' my streamlined DolphinSnot PHP down!," you dig? can anybody help me?
thanks.
-DolphinSnot