Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $subcategories = array();
- $i=0;
- foreach ($child1 as $_child1){
- $subcategories[$i]['url'] = $_child1->getUrl();
- $subcategories[$i]['name'] = $_child1->getName();
- $name[$i]=$_child1->getName();
- $i++;
- }
- /*
- sort($subcategories);
- ngak ngefek sebenarnya... gw ganti jadi
- */
- sort($name);
- foreach($name as $id=>$val){
- $html .= '<ul><li class="list_heading">
- <a href=" '.$subcategories[$id]['url'].' ">'.$subcategories[$id]['name'].'</a>';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement