getChildIdsの使い方
Posted: 2013年6月12日(水) 20:23
フォルダ扱いにしているリソース(ID:5)以下のリソース数を表示させてみようと
echo count($modx->getChildIds(5));
としてみたのですが、イベントログに
PHP error debug
Error : Illegal offset type in isset or empty
ErrorType[num] : WARNING[2]
File : /var/www/html/manager/includes/document.parser.class.inc.php
Line : 2144
Source : if (isset($childrenList[$id]))
と記録され、画面には何も表示されない状態なのですが何か使用方法が間違っているのでしょうか?
-----
ご利用のサーバ:さくらVPS
MODXのバージョン:1.0.10J
PHPのバージョン:5.3.3
MySQLのバージョン:5.1.69
ブラウザ:Aurora(Firefox Alpha版)
-----
echo count($modx->getChildIds(5));
としてみたのですが、イベントログに
PHP error debug
Error : Illegal offset type in isset or empty
ErrorType[num] : WARNING[2]
File : /var/www/html/manager/includes/document.parser.class.inc.php
Line : 2144
Source : if (isset($childrenList[$id]))
と記録され、画面には何も表示されない状態なのですが何か使用方法が間違っているのでしょうか?
-----
ご利用のサーバ:さくらVPS
MODXのバージョン:1.0.10J
PHPのバージョン:5.3.3
MySQLのバージョン:5.1.69
ブラウザ:Aurora(Firefox Alpha版)
-----