摘要:首先去Composer中文網(wǎng)下載composer 按照文檔教程安裝即可 第二步打開命令窗口切換到當(dāng)前的網(wǎng)站目錄,然后找到smarty目錄, 將 composer require smarty/smarty 復(fù)制到smarty 目錄下 smarty下載安裝完成 第三步項目中加載文件  
首先去Composer中文網(wǎng)下載composer 按照文檔教程安裝即可 第二步打開命令窗口切換到當(dāng)前的網(wǎng)站目錄,然后找到smarty目錄, 將 composer require smarty/smarty 復(fù)制到smarty 目錄下 smarty下載安裝完成 第三步項目中加載文件 require __DIR__ . '/vendor/autoload.php'; $smarty = new Smarty(); 下載導(dǎo)入成功
批改老師:天蓬老師批改時間:2019-05-13 09:46:03
老師總結(jié):其實就是讓composer接管一個項目目錄, 這樣才能實現(xiàn)自動導(dǎo)入