require(vendor / autoload.php):无法打开流(2)

时间:2018-12-18 03:34:43

标签: composer-php require-once

我遇到了这样的问题:

  

警告:require_once(C:\ xampp \ htdocs \ venom / protected / vendors / autoload.php):无法打开流:C:\ xampp \ htdocs \ venom \ protected \ composer_loader.php中没有此类文件或目录在第7行

     

     

require_once():无法在C:\ xampp \ htdocs \中打开所需的'C:\ xampp \ htdocs \毒液/protected/vendors/autoload.php'(include_path ='C:\ xampp \ php \ PEAR')第7行的毒液\ protected \ composer_loader.php

loader.php:

date_default_timezone_set('UTC');

defined('DS') or define('DS',DIRECTORY_SEPARATOR);
defined('ROOT_PATH') or define('ROOT_PATH', dirname(__FILE__));

include_once ROOT_PATH . "/protected/composer_loader.php";

change the following paths if necessary
define('YII_FRAMEWORK_PATH', 

dirname(__FILE__).'/protected/vendors/yiisoft/yii/framework/yii.php');

$yii=YII_FRAMEWORK_PATH;
$config=dirname(__FILE__).'/protected/config/main.php';
$shortcode=dirname(__FILE__).'/shortcode.php';

remove the following lines when in production mode
defined('YII_DEBUG') or define('YII_DEBUG',true); // specify how many
levels of call stack should be shown in each log message
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);

require_once($yii); require_once($shortcode);
Yii::createWebApplication($config)->run();

请帮助我解决此问题,

0 个答案:

没有答案