![]() |
How I can add in a php include into a TPL template file?
because it is a template file it won't allow me to insert the php include directly into it
someone told me I could create a call function and place the php include into the config files and call that function from the config files how do I do that? |
The simplest way I would think is (apache only example) to just have your server parse php within .tpl extensions. I'm not sure the directive offhand, but if you search around, you'll find what you are looking for!
Goodluck |
Quote:
The apache directive would be an addtype but because the tpl files are not usually called directly, they are used by the php program to format the output, that will probably not work. |
Also, the best way to do it can depend on the system using the tpl file. In smarty templates, you can do a certain amount of logic within the template itself. In something like phpBB it is usually just tags that are filled in without logic within the template.
So, if you told me what you are trying to do with what kind of system it might help :) |
Quote:
esyndicat is the script |
Why can't you use include before calling tpl?
offsubject, smarty is great! i'm loving it :) |
Quote:
Good icq session...lol. Glad we got it working. Yeah smarty is pretty easy to work with. |
Quote:
You could do that and just suck it into a tag but we just used a smarty include {include file="jdjdjdj"} It did the trick |
cool it worked out that way =)
|
thanks so much sarettah, that worked perfectly....you rock as usual!
|
| All times are GMT -7. The time now is 06:03 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123