返回compose......登陆

composer下载并导入smarty

蓦然回首2019-02-28 12:12:34178

下载:

在项目路径下运行cmd

打上composer require smarty/smarty

回车

composer会自动开始下载


导入

在文件中用require引入即可

require 'vendor/autoload.php'; 

$smarty = new Smarty();

最新手记推荐

• 用composer安装thinkphp框架的步骤• 省市区接口说明• 用thinkphp,后台新增栏目• 管理员添加编辑删除• 管理员添加编辑删除

全部回复(0)我要回复

暂无评论~
  • 取消回复发送