Hello,
I’ve tried the following code as shown in the docs
$this->EE->load->library('api');
$this->EE->api->instantiate('channel_categories');
$this->EE->api->api_channel_structure->category_form_tree();and also the following which I think is the (more) correct version of the above:
$this->EE->load->library('api');
$this->EE->api->instantiate('channel_categories');
$this->EE->api->api_channel_categories->category_form_tree();But I get the following message: Message: Undefined property: Api::$api_channel_categories
Does anyone have any idea what I’m doing wrong?
(v2.1.0 Build 20101020 )
Thanks
Andrew
[Mod Edit: Moved to the Development and Programming forum]
switch
$this->EE->load->library('api');
$this->EE->api->instantiate('channel_categories');
$this->EE->api->api_channel_categories->category_form_tree();to
$this->EE->load->library('api');
$this->EE->api->instantiate('channel_categories');
$this->EE->api_channel_categories->category_form_tree();Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.