像你正在使用的任何其他变量一样,你可以从你的对象中询问变量,所以如果你在php中
<?php echo $customerObject->getMyCustomVariable();?>
Run Code Online (Sandbox Code Playgroud)
你会在模板中做
{{var customerObject.getMyCustomVariable()}}
Run Code Online (Sandbox Code Playgroud)
而在php方面,您必须确保该属性存在于您的对象中并包含在集合中
归档时间: |
|
查看次数: |
7803 次 |
最近记录: |