您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

不能确定这段代码在Framework 上如何工作

2024/6/23 8:04:01发布26次查看
php html framework
多谢诸位。
新到公司, 在framework mvc 上看到如下代码,看不大懂是不是php,是如何工作的,请教一下。
page.header.html
{c::$domain} - {$config.title} {if ($debug)} sql ({count($sql_log)}) dump ({count($dump)}) profile ({$profile.time})
time: {$profile.time} sec.
memory: {$profile.memory} bytes
{foreach name=dump from=$dump item=item} dump: {$item.file}:{$item.line}
{$item.dump|nl2br}
{/foreach} {foreach name=sql_log from=$sql_log item=item} time {$item.time}, {$item.records} records:
{$item.query|nl2br}{if ($item.data)}
{var_dump($item.data)|escape}{/if}
{/foreach}
{/if} xyz - {$config.title}
{if ($user->logged())} home {if ($user->can_page('users|edituser|editrole'))} users {if ($user->can_page('users'))} users and roles {/if} {if ($user->can_page('edituser'))} add user {/if} {if ($user->can_page('editrole'))} add role {/if} {/if} {if ($user->can_page('warnings'))} {if ($user->can_page('warnings'))} warnings {/if} {/if} {if ($user->can_page('signal_monitoring'))} {if ($user->can_page('signal_monitoring_map'))} signal monitoring {/if} {/if} logout ({$user->getlogin()}) help {if ($user->can_page('faq'))} faq {/if} {if ($user->can_page('editrole'))} bandwidth calculator {/if} {/if}
{if ($message_success)} {$message_success}
{/if}
page.footer.html
bell expressvu (c)

回复讨论(解决方案) 应该不是html吧,html应该不支持
{if ($condition)}.............{/if}
{foreach name=sql_log from=$sql_log item=item}................{/foreach}
应该是 php,我猜 != 也能工作,但不知为什么能这么写,同问!
smarty 模版!!
参考smarty手册!
http://www.smarty.net/
smarty3 手册
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product