I'd like to print a list of all terms of a vocabulary, since i need to show a links collection to all categories. I used this snipped in my php page:
$termini = taxonomy_get_tree(3);
var_dump(($termini[0]));
$limite = count($termini);
for($i=0; $i < $limite; $i++) print $termini[$i]["name"];
var_dump() shows me the entire struct:
object(stdClass)(7) { ["tid"]=> string(1) "4" ["vid"]=> string(1) "3" ["name"]=> string(8) "speciale" ["description"]=> string(0) "" ["weight"]=> string(1) "0" ["depth"]=> int(0) ["parents"]=> array(1) { [0]=> string(1) "0" } }
problems:
1. $termini[$i]["name"] doesnt work. why i cant access object atributes? i tried also $termini[$i].name but...same results
2. i need a links collection associative array to pass to theme('links', $collections) function. how this array has to be formed?
tnx for help! :)