0
我想管理magento中的类别,但我有一个错误添加类别,时间让我看到我的错误,并给我正确的答案我显示我的错误致命错误:调用成员函数getId()在C非对象:\ WAMP \ WWW \ Magento的\ LIB \瓦瑞恩\ DATA \树\ Dbp.php上线332 我给我的代码我想管理magento中的类别
public function loadEnsuredNodes($category, $rootNode)
{
$pathIds = $category->getPathIds();
$rootNodeId = $rootNode->getId();
$rootNodePath = $rootNode->getData($this->_pathField);
$select = clone $this->_select;
$select->order($this->_table.'.'.$this->_orderField . ' ASC');
if ($pathIds) {
$condition = $this->_conn->quoteInto("$this->_table.$this->_idField in (?)", $pathIds);
$select->where($condition);
}