0

Cakephp用のシンプルなORMをセットアップしようとしているので、これをやりたい

App::import('Model','TheBaseModel');

class YourModel extends TheBaseModel {

}

クラス TheBaseModel は AppModel を拡張します {

関数 OptionSetter() {

}

}

しかし、モデル (app/model/DB) の下の DB フォルダーに TheBaseModel を配置したいと考えています。これどうやってするの。私はcakephp 2.xを使用しています

4

1 に答える 1

0

これを下に置きplugin、プラグインとして使用します。

于 2012-04-27T17:04:02.127 に答える