Advertisement
GWibisono

subcategory

Aug 21st, 2013
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.45 KB | None | 0 0
  1. <?php
  2. $subcategories = array();
  3. $i=0;
  4. foreach ($child1 as $_child1){
  5.  
  6.    $subcategories[$i]['url'] = $_child1->getUrl();
  7.    $subcategories[$i]['name'] = $_child1->getName();
  8.    $name[$i]=$_child1->getName();
  9. $i++;
  10. }
  11. /*
  12. sort($subcategories);
  13. ngak ngefek sebenarnya... gw ganti jadi
  14. */
  15. sort($name);
  16. foreach($name as $id=>$val){
  17. $html .= '<ul><li class="list_heading">
  18. <a href=" '.$subcategories[$id]['url'].' ">'.$subcategories[$id]['name'].'</a>';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement