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

原创
2016-06-23 14:12:53 916浏览

php html framework

多谢诸位。

新到公司, 在Framework MVC 上看到如下代码,看不大懂是不是php,是如何工作的,请教一下。


page.header.html
nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">	{C::$DOMAIN} - {$config.title}	{if ($debug)}	
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 手册

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。