LoginSignup
0
1

More than 5 years have passed since last update.

baserCMS データーバリデーションの問題

Posted at

プラグインに新しいモデルを作って、コントローラー側でデーターバリデーションを使う時、
$this->Model名->validates()のことがうまく動いてなかったら、
プラグインのsetting.php'userModel'の設定を確認してみましょう!
いつも問題になることにはありませんが、問題があったら必ずプラグイン名も追加してください。

setting.php
 <?php
  $config['BcAuthPrefix'] = array(
    'mypage' => array(
        'name'          => 'マイページ',
        'alias'         => 'mypage',
        'loginRedirect' => '',
        'loginTitle'    => '',
        'userModel'     => 'プラグイン名.モデル名',
        'loginAction'   => '',
        'logoutAction'  => '',
        'toolbar'       => false,
        'username'      => 'name',
        'password'      => 'password',
        'sessionKey'    => '',
        'passwordHasher'=> ''
    )

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1