<?php $pid = $modx->documentIdentifier; $allChildren = $modx->getAllChildren($id= $pid, $sort= 'menuindex', $dir= 'ASC', $fields= 'id'); $firstChild = $allChildren[0]['id']; return $firstChild ; ?>
« MODx Parse Error »MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: Invalid argument supplied for foreach()
Error type/ Nr.: Warning - 2
File: D:\xampplite\htdocs\ef\assets\snippets\ditto\classes\template.class.inc.php
Line: 50
Line 50 source: foreach ($templates as $tplName=>$tpl) {
Parser timing
MySQL: 0.0662 s (15 Requests)
PHP: 0.0823 s
Total: 0.1484 s[!DittoFormat? &parents=`[[firstChildId]]` &display=`all` &tplItem=`modellItem` &group=`4` &sortBy=`menuindex` &sortDir=`ASC` &tplGroup=`modellGroup`!]