尊龙凯时人生就是搏

ÔõôÔÚ΢ÇæÖÐ×°ÖÃThinkPHP²å¼þ

Ò»¡¢ÏÂÔØThinkPHP²å¼þ

ÔÚ×îÏÈʹÓÃThinkPHP²å¼þÇ°£¬ÎÒÃÇÓ¦¸ÃÏÈ´Ó¹ÙÍøÏÂÔØÆäѹËõ°ü£¬²¢½«Æä½âѹµ½ÍâµØĿ¼ÖС£½âѹºó£¬ÎÒÃÇ¿ÉÒÔ¿´µ½ÈçÏÂÎļþ½á¹¹£º

thinkphp/
©À©¤library/
©¦  ©¸©¤think/
©¦     ©À©¤cache/
©¦     ©À©¤console/
©¦     ©À©¤controller/
©¦     ©À©¤core/
©¦     ©À©¤crypt/
©¦     ©À©¤db/
©¦     ©À©¤debug/
©¦     ©À©¤di/
©¦     ©À©¤event/
©¦     ©À©¤exception/
©¦     ©À©¤lang/
©¦     ©À©¤middleware/
©¦     ©À©¤model/
©¦     ©À©¤paginator/
©¦     ©À©¤session/
©¦     ©À©¤template/
©¦     ©À©¤validate/
©¦     ©¸©¤.htaccess
©À©¤.htaccess
©À©¤.travis.yml
©À©¤composer.json
©À©¤composer.lock
©À©¤CONTRIBUTING.md
©À©¤LICENSE.txt
©À©¤README.md
©¸©¤think

µÇ¼ºó¸´ÖÆ

¶þ¡¢ÉÏ´«ThinkPHP²å¼þ

ÏÂÔØÍêThinkPHP²å¼þºó£¬ÎÒÃÇÐèÒª½«ÆäÉÏ´«µ½Î¢ÇæÖС£ÏêϸÀ´Ëµ£¬ÎÒÃÇÐèÒª½«thinkphpÎļþ¼Ð¸´ÖƵ½Î¢ÇæµÄaddonsĿ¼ÏµÄwxapp_thinkphp_pluginĿ¼ÖУ¬ÈçÏÂËùʾ£º

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

addons/
©À©¤wxapp_thinkphp_plugin/
©¦  ©¸©¤thinkphp/
©¦     ©À©¤library/
©¦     ©¦  ©¸©¤think/
©¦     ©¦     ©À©¤cache/
©¦     ©¦     ©À©¤console/
©¦     ©¦     ©À©¤controller/
©¦     ©¦     ©À©¤core/
©¦     ©¦     ©À©¤crypt/
©¦     ©¦     ©À©¤db/
©¦     ©¦     ©À©¤debug/
©¦     ©¦     ©À©¤di/
©¦     ©¦     ©À©¤event/
©¦     ©¦     ©À©¤exception/
©¦     ©¦     ©À©¤lang/
©¦     ©¦     ©À©¤middleware/
©¦     ©¦     ©À©¤model/
©¦     ©¦     ©À©¤paginator/
©¦     ©¦     ©À©¤session/
©¦     ©¦     ©À©¤template/
©¦     ©¦     ©À©¤validate/
©¦     ©¦     ©¸©¤.htaccess
©¦     ©À©¤.htaccess
©¦     ©À©¤.travis.yml
©¦     ©À©¤composer.json
©¦     ©À©¤composer.lock
©¦     ©À©¤CONTRIBUTING.md
©¦     ©À©¤LICENSE.txt
©¦     ©À©¤README.md
©¦     ©¸©¤think
©À©¤config.php
©À©¤install.php
©À©¤logo.png
©¸©¤plugin.php

µÇ¼ºó¸´ÖÆ

ÔÚÉÏ´«²å¼þºó£¬ÎÒÃÇÐèÒªÔÚ΢ÇæµÄ²å¼þÖÎÀíÒ³ÃæÉϾÙÐÐ×°Öòå¼þµÄ²Ù×÷¡£ÏêϸÀ´Ëµ£¬ÎÒÃÇÐèÒªµÇ¼΢Çæºǫ́£¬½øÈë²å¼þÖÎÀíÒ³Ã棬ÕÒµ½ÃûΪ¡°ThinkPHP²å¼þ¡±µÄ²å¼þ£¬²¢½«Æä¾ÙÐÐ×°Öá£

Èý¡¢Ê¹ÓÃThinkPHP²å¼þ

Ò»µ©×°ÖÃÁËThinkPHP²å¼þ£¬ÎÒÃDZã¿ÉÒÔÔÚ΢ÇæÖÐʹÓÃÆäËùÌṩµÄ¹¦Ð§¡£Í¨³£ÇéÐÎÏ£¬ÎÒÃÇ¿ÉÒÔÔÚ²å¼þµÄ¿ØÖÆÆ÷(Controller)Öнç˵ÏìÓ¦µÄÒªÁ죬ÒÔ¹©ÆäËûÄ£¿é»ò²å¼þʹÓá£ÀýÈ磬ÎÒÃÇ¿ÉÒÔÔÚ²å¼þµÄControllerÖнç˵ÈçÏÂÒªÁ죺

public function hello()
{
    return 'hello,thinkphp';
}

µÇ¼ºó¸´ÖÆ

È»ºó£¬ÔÚÆäËûÄ£¿é»ò²å¼þµÄControllerÖУ¬¾Í¿ÉÒÔͨ¹ýÈçÏ·½·¨Å²ÓøÃÒªÁ죺

$thinkphpPlugin = $this->createPlugin('wxapp_thinkphp_plugin');
echo $thinkphpPlugin->hello();

µÇ¼ºó¸´ÖÆ

ÔÚŲÓÃcreatePluginÒªÁìʱ£¬ÎÒÃÇÐèÒªÖ¸¶¨¸ÃÒªÁìËùÊôµÄ²å¼þµÄĿ¼Ãû¡£ÔÚ±¾ÎÄÖУ¬ÎÒÃǽ«ThinkPHP²å¼þµÄĿ¼ÃûÉèÖÃΪwxapp_thinkphp_plugin¡£

ÒÔÉϾÍÊÇÔõôÔÚ΢ÇæÖÐ×°ÖÃThinkPHP²å¼þµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

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

Ïà¹ØÐÂÎÅ

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

18523999891

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

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

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