0
我想编辑我的php模板,但我无法正确理解。 我使用Smarty模板引擎。编辑php模板
我的默认的PHP线看起来是这样的:
{$customfield.input|replace:'>' : 'class="form-control" >'}
我还有一个PHP的标签一样,我想结合:{$customfield.name}
我想这一点,但是,这并不工作:
{$customfield.input|replace:'>' : 'placeholder="'.{$customfield.name}.'" class="form-control" >'}
我该如何解决这个问题?
您使用哪种模板引擎? – Timo
@TimoSta我使用Smarty模板引擎。 –