PHP error
Declaration of DFileHelper::mkdir() should be compatible with that of CFileHelper::mkdir()
F:\OpenServer\domains\laboko\demos\dw_files\protected\components\DFileHelper.php(6)
01 <?php
02
03 //*****************************************************************************
04 class DFileHelper extends CFileHelper
05 //*****************************************************************************
06 {
07
08 //----------------------------------------------------------------------------
09 public static function ls($strPath)
10 //----------------------------------------------------------------------------
11 // Выдает сассив файлов директории без . и ..
12 {
13 $arrRet = array();
14 if ($handle = opendir($strPath))
15 {
16 while (false !== ($strFile = readdir($handle)))
17 if ($strFile != '.' && $strFile != '..')
18 $arrRet[] = $strFile;
Stack Trace
#0
+
F:\OpenServer\domains\laboko\framework\YiiBase.php(421): include("F:\OpenServer\domains\laboko\demos\dw_files\protected\components...")
#1
unknown(0): YiiBase::autoload("DFileHelper")
#2
–
F:\OpenServer\domains\laboko\demos\dw_files\protected\modules\files\FilesModule.php(30): spl_autoload_call("DFileHelper")
25 $this->assetsPath = Yii::app()->assetManager->basePath . '/files';
26
27 if ($this->uploadPath === null)
28 $this->uploadPath = Yii::app()->basePath . '/data/files/';
29
30 DFileHelper::mkdir($this->assetsPath);
31
32 // import the module-level models and components
33 $this->setImport(array(
34 'files.models.*',
35 'files.components.*',
......................
- Главная Список форумов Модули и инструменты
- Поиск
-
- Текущее время: 20 апр 2025, 03:33
- Часовой пояс: UTC+03:00
Информация: Конференция переехала на GitHub. Старый форум доступен только для чтения.