내 작업을 위해 사용자 지정 구성 요소를 쓰고 있습니다. 나는 그것을 만들기 위해 hello 컴포넌트를 사용하고있다. 내가 양식을 편집하고 저장하면이 오류를 얻을 :joomla function bind 문제
Call to a member function bind() on a non-object
내 코드 :
function save()
{
global $option;
JTable::addIncludePath(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_abc'.DS.'tables');
$row =& JTable::getInstance('abc', 'Table');
if(!$row->bind(JRequest::get('post')))
{
JError::raiseError(500, $row->getError());
}
$row->message = JRequest::getVar('message', '','post', 'string', JREQUEST_ALLOWRAW);
if(!$row->store()){
JError::raiseError(500, $row->getError());
}
switch($this->_task)
{
case 'apply':
$msg = 'Change Saved';
$link = 'index.php?option='.$option.'&task=edit&cid[]='.$row->id;
break;
case 'save':
$msg = 'Saved';
$link = 'index.php?option='.$option;
break;
default:
}
$this->setRedirect($link, $msg);
}
문제는이 인스턴스를 만들 수없는 점이다.
누구든지 해결책을 알고 있다면 알려주십시오.
감사합니다.
을 나는 SOLN 덕분에있어 –