「Php/fuelphp/migration/model crud」の版間の差分
提供: 初心者エンジニアの簡易メモ
(ページの作成:「==migrationを使ってmodelを作成する== php oil g model test name:varchar[50] created_at:datetime --crud *fuel/app/classes/model/test.php <?php class Model_Test...」) |
(相違点なし)
|
2015年5月20日 (水) 02:58時点における版
migrationを使ってmodelを作成する
php oil g model test name:varchar[50] created_at:datetime --crud
- fuel/app/classes/model/test.php
<?php class Model_Test extends \Model_Crud { protected static $_properties = array( 'id', 'name', 'created_at', 'updated_at' ); protected static $_table_name = 'tests'; }