0

I want to know how we can generate CRUD operations of MSSQL with Gii. I have already added the MSSQL credentials in my config section. But when I try to generate it via Gii I cant see any tables of MSSQL.

Any help would be highly appreciated.

Moeez
  • 494
  • 9
  • 55
  • 147
  • You can not generate table via GII. First you have to create table on your database. Then you can make model, Controller & views using gii. – Raihan Uddin Oct 18 '22 at 06:11
  • @RaihanUddin I know this but Is there any other way of doing this? Like can we do it manually? – Moeez Oct 18 '22 at 06:14
  • check this link: https://www.yiiframework.com/doc/guide/2.0/en/db-migrations. first create migration of the table & then migrate it. After migrate go to gii to create CRUD operation – Raihan Uddin Oct 18 '22 at 06:16
  • @RaihanUddin how to do the migration after creating it? – Moeez Oct 18 '22 at 06:42

0 Answers0