我有一个第三方组件,将其类别存储在#__categories表中。
-----+----------------+-----------------------+-----------------------+-----
...  | extension      | title                 | alias                 | ...
-----+----------------+-----------------------+-----------------------+-----
...  | com_content    | Uncategorised         | uncategorised         | ...
-----+----------------+-----------------------+-----------------------+-----
...  | com_banners    | Sample Data-Banners   | sample-data-banners   | ...
-----+----------------+-----------------------+-----------------------+-----
...  | com_newsfeeds  | Sample Data-Newsfeeds | sample-data-newsfeeds | ...
-----+----------------+-----------------------+-----------------------+-----
...  | com_contact    | Sample Data-Contact   | sample-data-contact   | ...
-----+----------------+-----------------------+-----------------------+-----
...  | com_content    | Joomla!               | joomla                | ...
-----+----------------+-----------------------+-----------------------+-----
...  | com_thirdparty | ThirdParty Category   | thridparty-category   | ...
-----+----------------+-----------------------+-----------------------+-----
...  | ...            | ...                   | ...                   | ...
-----+----------------+-----------------------+-----------------------+-----
我可以从下面com_banners或从下面的其他核心组件中打印类别,
$categories = JCategories::getInstance('Banners');
$subCategories = $categories->get()->getChildren(true);
print_r($subCategories);
但这表明
“ 致命错误:在第152行的... \ libraries \ legacy \ categories \ categories.php中找不到类'ThirdPartyCategories'”
尝试按以下方式打印另一个扩展的类别时,
$categories = JCategories::getInstance('ThirdParty');
$subCategories = $categories->get()->getChildren(true);
print_r($subCategories);
我与joomla库中的旧类别有什么关系?
注意:该名称
ThirdParty仅是一个占位符,可以是任何第三方扩展名。
                  不,它只是一个占位符,可以是任何第三方扩展名。以我为例,它是com_thirdparty
                
                
                  
                    —
                    kolunar 2015年
                    
                  
                
              
ThirdParty组件的实际名称吗?