Hello Everyone,
I am trying to use the API to display categories for a given group ID. However, I keep getting an error every time I run the code. Using EE 2.1.0 Build: 20100810
<?php
$this->EE->load->library('api');
$this->EE->api->instantiate('channel_categories');
$group_id = '1';
$category_array = $this->EE->api->api_channel_structure->category_tree($group_id);
?>Attached is a screenshot of the error message.
I also tried using $this->EE->api->api_channel_categories->category_tree() with the same results.
Thank you in advance for your help, Mario
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.