Example #1
0
 protected function getCategoryChildrenJson(Category $category)
 {
     $children = array();
     foreach ($category->getChildNodeArray(false, true) as $cat) {
         $children[] = $this->getCategoryJson($cat);
     }
     return $children;
 }