-1
有什么办法可以创建类似这样的东西吗?PHP - MySQL ShortCut {}
例如,
if i type => {header} , php load website's navbar<br/>
if i type => {footer} , php load footer <br/>
if i type => {title} , php load data from database and set in site title , and etc...<br/>
感谢和抱歉,我的英语不好
<!doctype html>
<html>
<head>
<title>{title}</title>
</head>
<body>
<div class="header">{header}</div>
<table>
<tr>
<th>Company</th>
</tr>
{data_table}
</table>
<div class="footer">{footer}</div>
</body>
</html>
其确定,没有任何问题,如果你的英语不好,但请分享您的试用代码。它看起来有点宽泛。 – C2486
我需要知道我如何做到这一点? @http://stackoverflow.com/users/2815635/niklesh – hasan