
Mógłby ktoś rzucić okiem i powiedzieć czemu ta "tablica" sie nie tworzy?
print_r wyświetla 1 Co jest nie tak?
<?php $c = new Criteria(); $this->sCats = SubCategoryPeer::doSelect($c); foreach($this->sCats AS $c1) { $this->cat1[$c1->getParentId()][0] = 'new Option("-------------------", "-1")'; $this->cat1[$c1->getParentId()][] = 'new Option("'.$c1->getTitle().'", "'.$c1->getId().'")'.""; } ?>