public function insert($name)
 {
     $type = new Topictype();
     $type->typename = $name;
     $type->save();
 }
 public function insert($typeName)
 {
     $class = new Topictype();
     $class->typename = $typeName;
     $class->save();
 }