简体   繁体   中英

smarty code definition {display

I can't understand this code

{display property=$theField.id}

This code snippet is from smartjobboard cms file is templates/_system/builder/bf_displaylisting_fieldsblocks.tpl line 91 after parsing it produces this

echo $this->_plugins['function']['display'][0][0]->tpl_display(array('property' => $this->_tpl_vars['theField']['id']), $this);

smart job board uses smarty as template engine.

display is a smarty plugin function and property and argument to it. You need to search for something like:

$smarty->registerPlugin("function","display", "... (local function name)");

in their code. Check the manual about plugin functions , and you know what's going on.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM