i have extended the data writer and resource controller for my add on and create listener for these
and add radio button with add resource form ..and add a column call with xf_resource table but its not working ...
datawriter that i extend from xenresource datawriter..
class FD_TitleCase_DataWriter_Resource extends XFCP_FD_TitleCase_DataWriter_Resource
{
protected function _getFields()
{ $_modTableName='xf_resource';
$fields = parent::_getFields();
$fields[$_modTableName]['call'] = array('type' => self::TYPE_STRING, 'default' => '');
return $fields;
}
}
this is my action for my addon through which i want to save data..(extended from Resource)
public function actionSave()
{
$parent=parent::actionSave();
$dw = XenForo_DataWriter::create('XenResource_DataWriter_Resource');
//$dw = XenForo_DataWriter::create('FD_TitleCase_DataWriter_Resource');
$= $this->_input->filterSingle('radio', XenForo_Input::STRING);
$dw->set('call',$text );
// $dw->set('call',"hello" );
return $parent;
}
and add radio button with add resource form ..and add a column call with xf_resource table but its not working ...
datawriter that i extend from xenresource datawriter..
class FD_TitleCase_DataWriter_Resource extends XFCP_FD_TitleCase_DataWriter_Resource
{
protected function _getFields()
{ $_modTableName='xf_resource';
$fields = parent::_getFields();
$fields[$_modTableName]['call'] = array('type' => self::TYPE_STRING, 'default' => '');
return $fields;
}
}
this is my action for my addon through which i want to save data..(extended from Resource)
public function actionSave()
{
$parent=parent::actionSave();
$dw = XenForo_DataWriter::create('XenResource_DataWriter_Resource');
//$dw = XenForo_DataWriter::create('FD_TitleCase_DataWriter_Resource');
$= $this->_input->filterSingle('radio', XenForo_Input::STRING);
$dw->set('call',$text );
// $dw->set('call',"hello" );
return $parent;
}