It looks like you're new here. If you want to get involved, click one of these buttons!
class todos_model extends Base_module_model {
public $required = array('todo_name');
public $record_class = 'todos';
protected $key_field = 'todo_id';
public $foreign_keys = 'list_id';
function __construct()
{
/* reference to the db table */
parent::__construct('todos');
}
}
$fields['todo_name'] = array('type' => 'textarea', 'cols' => 40, 'rows' => 5, 'class' => 'no_editor');
Comments
function form_fields($values = array(), $related = array()) { $fields = parent::form_fields($values, $related); $fields['todo_name'] = array('type' => 'textarea', 'cols' => 40, 'rows' => 5, 'class' => 'no_editor'); return $fields; }
Greetings from Germany,
Wilhelmus