![]() |
can't include php
Hi guys, I've researched how to include php files in the smarty template ({include_php file="/path/to/php/file"}) but it's not including it, almost as if it's not even there. I'm using the path from the logs. Is there anything in the PHP file that could break the smarty? It parses normally if I run it alone.. it's just the one php file with no includes or dependencies.
Thanks. |
Re: can't include php
This isn't typically good practice but you can do:
{php}include "/path/to/php/file";{/php} |
All times are GMT -8. The time now is 07:03 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.