use tableprefix on gii model generator

use tableprefix on gii model generator
correct typo

useTablePefix => useTablePrefix
removed unused code

removed unused code $patterns