×ðÁú¿­Ê±

thinkphpÔõôÉèÖýçÃæ

thinkphpÊÇÒ»ÖÖ¿ªÔ´µÄphp webÓ¦ÓóÌÐò¿ò¼Ü £¬ÌṩÁË¿ìËÙ¿ª·¢webÓ¦ÓóÌÐòËùÐèÒªµÄ½¹µã¿âºÍÖÚ¶àµÄ¸ßЧ¡¢ÎÞаºÍ¿ÉÀ©Õ¹µÄ×é¼þ¡£±¾ÎĽ«ÎªÄúÏÈÈÝÔõÑùÔÚthinkphpÖÐÉèÖýçÃæ¡£

ʹÓÃÄ£°åÒýÇæ

ÔÚThinkPHPÖÐ £¬Ê¹ÓÃÄ£°åÒýÇæ¿ÉÒÔÇáËÉÉèÖýçÃæ¡£ÏÖÔÚ £¬ThinkPHPÖ§³Ö¶àÖÖÄ£°åÒýÇæ £¬°üÀ¨Smarty¡¢TwigºÍBladeµÈµÈ¡£ÕâÀïÒÔSmartyΪÀý £¬ÏÈÈÝÔõÑùÔÚThinkPHPÖÐÉèÖýçÃæ¡£

Ê×ÏÈ £¬ÔÚThinkPHPµÄapplicationĿ¼Ï½¨ÉèÒ»¸öÃûΪ”Home”µÄÄ£¿é £¬²¢ÔÚÄ£¿éµÄĿ¼Ï½¨ÉèÒ»¸öÃûΪ”View”µÄÎļþ¼Ð £¬ÓÃÓÚ´æ·ÅView²ãµÄÄ£°åÎļþ¡£

ÔÚViewÎļþ¼ÐÖÐ £¬½¨ÉèÒ»¸öÃûΪ”Index”µÄÎļþ¼Ð £¬²¢ÔÚ¸ÃÎļþ¼ÐϽ¨ÉèÒ»¸öÃûΪ”index.tpl”µÄSmartyÄ£°åÎļþ¡£ÔÚ¸ÃÄ£°åÎļþÖÐ £¬ÎÒÃÇ¿ÉÒÔʹÓÃSmartyÄ£°åÓïÑÔÀ´ÉèÖýçÃæ¡£

ÏÂÃæÊÇÒ»¸ö¼òÆÓµÄSmartyÄ£°å´úÂëʾÀý£º

Á¬Ã¦Ñ§Ï°¡°PHPÃâ·ÑѧϰÌõ¼Ç£¨ÉîÈ룩¡±£»

<html>
<head>
    <title>½Ó´ýÀ´µ½ÎÒµÄÍøÕ¾£¡</title>
</head>
<body>
    <h1>½Ó´ýÀ´µ½ÎÒµÄÍøÕ¾£¡</h1>
    <p>ÕâÊÇÎҵĵÚһƪ²©¿Í¡£</p>
</body>
</html>

µÇ¼ºó¸´ÖÆ

ÔÚ¸ÃʾÀýÖÐ £¬ÎÒÃÇ¿ÉÒÔ¿´µ½Ê¹ÓÃÁËHTML±êÇ©ºÍSmartyÄ£°åÓïÑÔÀ´ÉèÖýçÃ档ͨ¹ýÕâÖÖ·½·¨ £¬ÎÒÃÇ¿ÉÒÔÇáËɵØÉèÖÃWebÓ¦ÓóÌÐòµÄ½çÃæ¡£

ʹÓÃBootstrap¿ò¼Ü

BootstrapÊÇÒ»ÖÖÊ¢ÐеÄÇ°¶Ë¿ò¼Ü £¬ÓÃÓÚ¿ª·¢ÏìӦʽWebÓ¦ÓóÌÐò¡£ÔÚThinkPHPÖÐ £¬¿ÉÒÔÇáËɵØʹÓÃBootstrap¿ò¼ÜÀ´ÉèÖýçÃæ¡£

Ê×ÏÈ £¬ÔÚThinkPHPÖÐ×°ÖÃBootstrap¿ò¼Ü £¬²¢½«ÆäÌí¼Óµ½View²ãµÄÄ£°åÖС£¿ÉÒÔͨ¹ýCDN»òÕßÍâµØÎļþµÄ·½·¨À´ÒýÈëBootstrap¿ò¼Ü¡£

ÏÂÃæÊÇÒ»¸ö¼òÆÓµÄBootstrapÄ£°å´úÂëʾÀý£º

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>½Ó´ýÀ´µ½ÎÒµÄÍøÕ¾£¡</title>
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css">
</head>
<body>
    <div class="container">
        <div class="jumbotron">
            <h1>½Ó´ýÀ´µ½ÎÒµÄÍøÕ¾£¡</h1>
            <p>ÕâÊÇÎҵĵÚһƪ²©¿Í¡£</p>
        </div>
    </div>
    <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script src="https://cdn.bootcss.com/popper.js/1.12.9/umd/popper.min.js"></script>
    <script src="https://cdn.bootcss.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js"></script>
</body>
</html>

µÇ¼ºó¸´ÖÆ

ÔÚ¸ÃʾÀýÖÐ £¬ÎÒÃÇ¿ÉÒÔ¿´µ½Ê¹ÓÃÁËBootstrap¿ò¼ÜÀ´ÉèÖýçÃ档ͨ¹ýÕâÖÖ·½·¨ £¬ÎÒÃÇ¿ÉÒÔʹÓÃBootstrap¿ò¼ÜÌṩµÄ×é¼þºÍÑùʽÀ´¿ìËٵشWebÓ¦ÓóÌÐòµÄ½çÃæ¡£

ʹÓÃVue.js¿ò¼Ü

Vue.jsÊÇÒ»ÖÖÊ¢ÐеÄJavaScript¿ò¼Ü £¬ÓÃÓÚ¹¹½¨ÏìӦʽWebÓ¦ÓóÌÐò¡£ÔÚThinkPHPÖÐ £¬¿ÉÒÔʹÓÃVue.js¿ò¼ÜÀ´ÉèÖýçÃæ¡£

Ê×ÏÈ £¬ÔÚThinkPHPÖÐ×°ÖÃVue.js¿ò¼Ü £¬²¢½«ÆäÌí¼Óµ½View²ãµÄÄ£°åÖС£¿ÉÒÔͨ¹ýCDN»òÕßÍâµØÎļþµÄ·½·¨À´ÒýÈëVue.js¿ò¼Ü¡£

ÏÂÃæÊÇÒ»¸ö¼òÆÓµÄVue.jsÄ£°å´úÂëʾÀý£º

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>½Ó´ýÀ´µ½ÎÒµÄÍøÕ¾£¡</title>
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
</head>
<body>
    <div id="app">
        <h1>{{ title }}</h1>
        <p>{{ content }}</p>
    </div>
    <script>
        var vm = new Vue({
            el: '#app',
            data: {
                title: '½Ó´ýÀ´µ½ÎÒµÄÍøÕ¾£¡',
                content: 'ÕâÊÇÎҵĵÚһƪ²©¿Í¡£'
            }
        });
    </script>
</body>
</html>

µÇ¼ºó¸´ÖÆ

ÔÚ¸ÃʾÀýÖÐ £¬ÎÒÃÇ¿ÉÒÔ¿´µ½Ê¹ÓÃÁËVue.js¿ò¼ÜÀ´ÉèÖýçÃ档ͨ¹ýÕâÖÖ·½·¨ £¬ÎÒÃÇ¿ÉÒÔʹÓÃVue.js¿ò¼ÜÌṩµÄ×é¼þ¡¢Ö¸ÁîºÍÊý¾Ý°ó¶¨µÈ¹¦Ð§À´¿ìËٵشWebÓ¦ÓóÌÐòµÄ½çÃæ¡£

×ܽá

ÔÚ±¾ÎÄÖÐ £¬ÎÒÃÇÏÈÈÝÁËÔÚThinkPHPÖÐÉèÖýçÃæµÄÈýÖÖÒªÁ죺ʹÓÃÄ£°åÒýÇ桢ʹÓÃBootstrap¿ò¼ÜºÍʹÓÃVue.js¿ò¼Ü¡£Í¨¹ýÕâЩҪÁì £¬ÎÒÃÇ¿ÉÒÔÇáËɵشWebÓ¦ÓóÌÐòµÄ½çÃæ £¬ÊµÏÖ¸ßЧµÄ¿ª·¢¡£

ÒÔÉϾÍÊÇthinkphpÔõôÉèÖýçÃæµÄÏêϸÄÚÈÝ £¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí £¬°æȨÕùÒéÓë±¾Õ¾ÎÞ¹Ø £¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í×ðÁú¿­Ê±ÂËÓÍ»úÍø¹Ù·½Ì¬¶È £¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ £¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢ £¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢ £¬ÇëÄúÁ¬Ã¦ÁªÏµ×ðÁú¿­Ê±ÊµÊ±ÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ×ðÁú¿­Ê±

18523999891

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎå £¬9:30-18:30 £¬½ÚãåÈÕÐÝÏ¢

QR code
¡¾ÍøÕ¾µØͼ¡¿¡¾sitemap¡¿