0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?