Thanks for your replies.
I solved the problem like this:

<?php
foreach ($categories as $category):
        echo '<tr>
                        <td align="left" width="50%">
                                '.$html->link($category['Category']['name'], 
'/categories/view/'.
$category['Category']['id']).'
                                <br><small> 
'.$category['Category']['description'].' </
small><ul>';

        foreach ($category['Subcategory'] as $subcategory):
                echo '<li>'.$html->link($subcategory['name'], 
'/subcategories/view/'.
$subcategory['id']).'</li>';
?>
<?php
        endforeach;
        echo '</ul></td></tr>';
endforeach;
?>

</table>


This is for cakePHP 1.2

It's not very complicated or safe, but it get's the job done!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to