Home > Article > Backend Development > 不能确定这段代码在Framework 上怎么工作
不能确定这段代码在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"><br> <br> <br> <title>{C::$DOMAIN} - {$config.title}</title><br> <link><br> <script></script><br> <meta><br> <br> <br> {if ($debug)}<br> <div> <br> <div> <br> <a>SQL ({count($sql_log)})</a><br> <a>DUMP ({count($dump)})</a><br> <a>Profile ({$profile.time})</a><br> </div> <br> <div> <br> Time: {$profile.time} sec.<br><br> Memory: {$profile.memory} bytes<br> </div> <br> {foreach name=dump from=$dump item=item}<br> <div>Dump: {$item.file}:{$item.line}<br>{$item.dump|nl2br}</div> <br> {/foreach}<br> {foreach name=sql_log from=$sql_log item=item}<br> <div>Time {$item.time}, {$item.records} records: <br> {$item.query|nl2br}{if ($item.data)} <br><br>{var_dump($item.data)|escape}{/if}</div> <br> {/foreach}<br> </div><br> {/if}<br> <div><h1>XYZ - {$config.title}</h1></div><br> <div> <br> <div> <br> <a></a><br> <a></a><div></div> <br> {if ($user->logged())}<br> <iframe></iframe><br> <div> <br> <ul> <br> <li> <br> <a>Home</a><br> </li> <br> {if ($user->can_page('users|edituser|editrole'))}<br> <li> <br> <a>Users</a><br> <ul> <br> {if ($user->can_page('users'))}<br> <li><a>Users and Roles</a></li> <br> {/if}<br> {if ($user->can_page('edituser'))}<br> <li><a>Add User</a></li> <br> {/if}<br> {if ($user->can_page('editrole'))}<br> <li><a>Add Role</a></li> <br> {/if}<br> </ul> <br> </li> <br> {/if}<br> {if ($user->can_page('warnings'))}<br> <li> <br> {if ($user->can_page('warnings'))}<br> <a>Warnings</a><br> {/if}<br> </li> <br> {/if}<br> {if ($user->can_page('signal_monitoring'))}<br> <li> <div class="clear"> </div> </li> </ul> </div> </div> </div>