mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-20 00:20:44 +08:00
add autocomplete for model class field
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
namespace yii\gii\controllers;
|
||||
|
||||
use Yii;
|
||||
use yii\helpers\Inflector;
|
||||
use yii\web\Controller;
|
||||
use yii\web\NotFoundHttpException;
|
||||
|
||||
@@ -126,4 +127,12 @@ class DefaultController extends Controller
|
||||
throw new NotFoundHttpException("Code generator not found: $id");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $tableName
|
||||
* @return string
|
||||
*/
|
||||
public function actionClassify($tableName){
|
||||
return Inflector::classify($tableName);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user