Composer 使用问题

浏览:3806 发布日期:2016/10/19 分类:ThinkPHP5专区 关键字: Composer
Composer下来的插件thinkphp5是自动加载的吗?

比如验证码:composer require topthink/think-captcha
在模板里直接{:captcha_img()}来用。
captcha_img()函数位置应该是vendor\topthink\think-captcha\src\helper.php文件47行。
同理,也可以在控制器里直接 new \think\captcha\Captcha($config);来用。

我理解的对吗?谢谢
最佳答案
评论( 相关
后面还有条评论,点击查看>>