我使用外部php文件加载了joomla环境。
<?php
require_once('configuration.php');
// Create a JConfig object
$config = new JConfig();
// Use the object in a meaningful way
&GT;
现在如何在父类别下创建新类别..
答案 0 :(得分:1)
你应该使用joomla的API,因为有一个你不想搞砸的资产表 同样的问题已在此处发布:How to add categories in Joomla 2.5
如何处理此问题的示例检查:https://gist.github.com/mbabker/3211464
使用setLocation,您可以设置父类别
如何在外部文件中获取Joomla Framework,请访问:http://docs.joomla.org/How_to_create_a_stand-alone_application_using_the_Joomla!_Framework
希望这有助于您的需求