热搜:NVER node 开发 php

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

2024-09-15 09:10:01
不能确定这段代码在Framework 上如何工作

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())} {/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 手册