把/media/MyDocuments/xampp/htdocs/myyii下面的index.php复制到/media/MyDocuments/xampp/htdocs/myyii/protected下面,
然后将下面的代码

$yii=dirname(__FILE__).'/framework/yii.php';
$config=dirname(__FILE__).'/protected/config/main.php';
修改为
$yii=dirname(__FILE__).'/../framework/yii.php';
$config=dirname(__FILE__).'/config/main.php';

由于我的php是使用xampp,放在/opt/lampp中的,所以要运行以下命令
cd /media/MyDocuments/xampp/htdocs/myyii/protected
php -c /opt/lampp/etc/php.ini yiic.php shell

相关文章:

  • 2021-08-08
  • 2022-12-23
  • 2022-12-23
  • 2021-09-26
  • 2022-01-28
  • 2021-08-24
  • 2022-02-24
  • 2022-01-07
猜你喜欢
  • 2021-12-30
  • 2021-11-24
  • 2021-07-25
  • 2021-06-21
  • 2022-12-23
  • 2021-10-03
  • 2022-12-23
相关资源
相似解决方案