Skip to content
Advertisement

Tag: smarty3

How to use .env file in smarty?

I am new to smarty template. My all database settings are in /inc/settings/DSOPSettings.local.php but Every time I get pull from git for changes It overrides. I have tried to set .env file in smarty template project root tried to get env variables in DSOPSettings.local.php file but It’s not working for me. My .env file : My DSOPSettings.local.php : I have

{php} is not working in latest smarty while using SmartyBC class file

I have came across my first issue and it has to deal with PHP in smarty. I read the smarty manual where it said to include the SmartyBC.class.php file instead of the regular Smarty.class.php file and i did change the default file to the BC file. I went into my .tpl file and add {php}Messages::displayMsg();{/php} to show my “wrong password”

Advertisement