use tableprefix on gii model generator

use tableprefix on gii model generator
correct typo

useTablePefix => useTablePrefix
removed unused code

removed unused code $patterns
Merge pull request #3222 from horizons2/patch-1

use tableprefix on gii model generator