CakePHP3系|bakeコマンドの使い方

ヘルプを見る

ヘルプを見る方法は2つある

# bin/cake bake -h

または、

# bin/cake bake --help

Contorollerファイルの作成

# bin/cake bake controller <コントローラクラス名>

テンプレートファイルの作成

# bin/cake bake template <パス名>

モデルファイルを作成する

# bin/cake bake model <モデルのクラス名>

Model、Template、Controllerをすべて作成する

# bin/cake bake all <テーブル名>

------------------------------
作成日:2018年03月14日
更新日:2018年05月11日
------------------------------

ページの先頭へ