モジュールのYiiログインURLモジュールをオーバーライドする方法は?
基本アプリケーションの主な構成は次のとおりです。
return array(
.........
// application components
'components'=>array(
'user'=>array(
// enable cookie-based authentication
'allowAutoLogin'=>true,
'loginUrl' => '/site/login',
),
..........
);
そして、エージェントモジュールがあります。このモジュールでは、ログインURLが異なり、ログイン方法も異なります。
class AgentModule extends CWebModule {
public function init() {
// this method is called when the module is being created
// you may place code here to customize the module or the application
// import the module-level models and components
$this->setImport(array(
'agent.models.*',
'agent.components.*',
));
$this->defaultController = 'default';
$this->layoutPath = Yii::getPathOfAlias('agent.views.layout');
$this->components = array(
'user' => array(
'class' => 'AgentUserIdentity',
'loginUrl' => '/agent/default/login',
)
);
}
.......
しかし、なぜこれが機能しないのかわかりません。助けてください...(TT)