Yii1 - Add component

$config = array( 'class' => 'ext-reseller-management.backend.components.web.auth.ResellerWebUser', 'allowAutoLogin' => true, 'loginUrl' => array('guest/index'), 'returnUrl' => array('dashboard/index'), 'authTimeout' => 7200, 'identityCookie' => array( 'httpOnly' => true, ) ); $user = Yii::createComponent($config); Yii::app()->setComponent('user', $user, false);

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.