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
Tag: smarty3
PHP display while loop data accurately in SMARTY template
In the following code when I try to assign $viewAd value to the template file and display result it does not display the accurate results when assigned to the template. However, it displays the accurate desired result on top of the page when I straight echo the $viewAd in the PHP page. I have given the screenshots below. My PHP
{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”