this is myfile that i extend with my addon DataWriter/thread.php
class FD_TitleCase_DataWriter_Thread extends XFCP_FD_TitleCase_DataWriter_Thread
{
protected function _getFields()
{
$fields = parent::_getFields();
$fields[$this->_modTableName]['t_case'] = array('type' => self::TYPE_STRING, 'default' => '');
return $fields;
}
}
and i have add this code with listner .....
public static function load_class_datawriter($class, array &$extend)
{
if($class == 'XenForo_DataWriter_Discussion_Thread')
{
$extend[] = 'FD_TitleCase_DataWriter_Thread';
}
}
bat when i create a new thread and save ... it show me an error
Undefined property: FD_TitleCase_DataWriter_Thread::$_modTableName
where is the problem ...
and i have create three radio button with this create related template with name mybuttons ...
im tring to get its value through
$text = $this->_input->filterSingle('mybuttons', XenForo_Input::STRING);
and want to save in column t_case that i want to create in xf_thread..how it is possible...please reply