Skip to content

Instantly share code, notes, and snippets.

@crystaldaking
Created November 27, 2019 14:09
Show Gist options
  • Save crystaldaking/5dbb354ae49dd091aa128113970a6180 to your computer and use it in GitHub Desktop.
Save crystaldaking/5dbb354ae49dd091aa128113970a6180 to your computer and use it in GitHub Desktop.
<?php
if ($param != null || $param!= 0){
$where = array('parent' => $param);
$elements = $modx->getCollection('msCategory',$where);
foreach ($elements as $menuValue){
echo ''//тут выведи html, а вообще в идеале - в чанк
$modx->runSnippet('pdoMenu',$menuValue);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment