尊龙凯时人生就是博

thinkphp5.1Ôõô»á¼ûºǫ́·¾¶

Ëæ×Å»¥ÁªÍøµÄÒ»Ö±Éú³¤£¬ÈËÃǹØÓÚÍøÕ¾µÄÐèÇóÒ²Ô½À´Ô½¸ß£¬ÍøÕ¾µÄ¿ª·¢×ÔÈ»¶øȻҲ³ÉΪÁËÒ»¸öÈÈÃŵÄÐÐÒµ¡£Ëæ×ÅphpÓïÑÔµÄÒ»Ö±Éú³¤£¬ÏÖÔÚÔ½À´Ô½¶àµÄÈË×îÏȽÓÄÉphp¿ò¼Ü¿ª·¢ÍøÕ¾£¬ÆäÖнÏÁ¿Ê¢ÐеĿò¼ÜÖ®Ò»¾ÍÊÇthinkphp¡£ÔÚthinkphp5.1¿ò¼Ü¿ª·¢Íøվʱ£¬ºǫ́ÖÎÀíϵͳÊDZز»¿ÉÉÙµÄÒ»¸ö²¿·Ö¡£ÄÇô£¬ÔÚthinkphp5.1ÖУ¬ÔõÑù»á¼ûºǫ́·¾¶ÄØ£¿±¾ÎĽ«ÎªÄúÏêϸÏÈÈÝ¡£

½¨Éèºǫ́¿ØÖÆÆ÷

Ê×ÏÈ£¬ÎÒÃÇÐèÒª½¨ÉèÒ»¸öºǫ́¿ØÖÆÆ÷À´¿ØÖƺǫ́ҳÃæµÄÌøת£¬½¨ÉèÒªÁìÈçÏ£º

ÔÚthinkPHPÏîÄ¿ÖУ¬ÎÒÃÇ¿ÉÒÔÔÚapplication\admin\controllerĿ¼Ï½¨ÉèÒ»¸öIndex.phpÎļþ¡£ÔÚIndex.phpÎļþÖÐÌí¼ÓÒÔÏ´úÂ룺

<?php     namespace app\admin\controller;
    
    class Index{
        
        public function index(){
            return view();
        }
        
        public function welcome(){
            return view();
        }
    }

µÇ¼ºó¸´ÖÆ

½¨Éèºǫ́ÊÓͼÎļþ

½¨Éèºǫ́¿ØÖÆÆ÷ºó£¬ÎÒÃÇÐèÒª½¨ÉèÏìÓ¦µÄÊÓͼÎļþÀ´ÏÔʾҳÃæÄÚÈÝ¡£ÔÚthinkPHPÖУ¬ÎÒÃÇ¿ÉÒÔÔÚapplication\admin\viewĿ¼Ï½¨ÉèÒ»¸öindexĿ¼£¬ÔÚindexĿ¼ÏÂÌí¼Óindex.htmlÎļþºÍwelcome.htmlÎļþ£¬½¨ÉèÒªÁìÈçÏ£º

ÔÚapplication\admin\viewĿ¼Ï½¨ÉèindexĿ¼£¬ÔÚindexĿ¼ÏÂÌí¼Óindex.htmlÎļþºÍwelcome.htmlÎļþ¡£ÆäÖÐindex.htmlÎļþµÄ´úÂëÈçÏ£º

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

nbsp;html&gt;


    <meta>
    <title>ºǫ́Ê×Ò³</title>
    ºǫ́Ê×Ò³

µÇ¼ºó¸´ÖÆ

welcome.htmlÎļþµÄ´úÂëÈçÏ£º

nbsp;html&gt;


    <meta>
    <title>½Ó´ýÒ³Ãæ</title>
    ½Ó´ýÒ³Ãæ

µÇ¼ºó¸´ÖÆ

ÉèÖ÷ÓÉ

ÔÚ½¨ÉèÁ˺ǫ́¿ØÖÆÆ÷ºÍÊÓͼÎļþÖ®ºó£¬ÎÒÃÇ»¹ÐèÒªÉèÖ÷ÓÉ£¬½«ºǫ́·¾¶Óëºǫ́¿ØÖÆÆ÷Ïà¶ÔÓ¦¡£ÔÚthinkPHP5.1ÖУ¬ÉèÖ÷ÓɵÄÒªÁì½ÏÁ¿¼òÆÓ£¬Ö»ÐèÒªÔÚÏîĿĿ¼ÏµÄrouteĿ¼Öн¨ÉèÒ»¸öadmin.phpÎļþ£¬È»ºóÔÚÎļþÖÐÌí¼ÓÒÔÏ´úÂ룺

<?php     use think\Route;
    
    Route::rule('admin', 'admin/index/index');
    
    Route::rule('admin/welcome', 'admin/index/welcome');

µÇ¼ºó¸´ÖÆ

»á¼ûºǫ́·¾¶

ÔÚÉÏÊö°ì·¨Íê³ÉÖ®ºó£¬ÎÒÃǾͿÉÒÔͨ¹ý»á¼ûÓòÃû/adminÀ´½øÈëºǫ́Ê×Ò³£¬»á¼ûÓòÃû/admin/welcomeÀ´½øÈë½Ó´ýÒ³ÃæÁË¡£

×ܽá

ÔÚthinkPHP5.1ÖУ¬»á¼ûºǫ́·¾¶µÄÒªÁì½ÏÁ¿¼òÆÓ£¬Ö»ÐèÒª½¨Éèºǫ́¿ØÖÆÆ÷ºÍÊÓͼÎļþ£¬È»ºóÉèÖ÷ÓÉ£¬¼´¿ÉʵÏÖºǫ́·¾¶µÄ»á¼û¡£Ï£Íû±¾ÎÄÄܶÔÄúÓÐËù×ÊÖú¡£

ÒÔÉϾÍÊÇthinkphp5.1Ôõô»á¼ûºǫ́·¾¶µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

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

Ïà¹ØÐÂÎÅ

ÁªÏµ尊龙凯时人生就是博

18523999891

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

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

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