dtt3399 2015-09-06 12:59
浏览 30
已采纳

如何在单页引导程序模板中插入PHP代码

actually am working on a php website, and am finished with it, and I want to make a good style to my project, I found many templates and am interested to “one-page bootstrap templates”, i have downloaded ones and don't know how to use them, I want to put my php pages in one of them but I don't know how to do that.

  • 写回答

1条回答 默认 最新

  • 普通网友 2015-09-06 13:18
    关注

    if you are coding php without any framework and template engine you can combine php and html( here bootstrap template) like this :

    <html>
        <body class="container">
            <a href=" <?php echo $link ?> "> text </a>
            <?php if $list=true ?>
                <ul>
                 ...
                <ul>
           <?php endif ?>
       </body>
    <html>
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?