It allows basic operations on an account, see changelog and roadmap for current and next features.
Unpack account module under your modules directory.
Unpack mail extension under your extensions directory and configure it.
Execute account/data/schema.mysql.sql script in your database.
Enable account module in your configuration:
'modules'=>array( ... 'account'=>array( 'defaultController'=>'account', ), ),
'user'=>array( ... 'loginUrl'=>array('/account/account/login'), ),
$this->widget('zii.widgets.CMenu',array( 'items'=>array( ... array('label'=>'Register', 'url'=>array('/account/account/register'), 'visible'=>Yii::app()->user->isGuest), array('label'=>'Login', 'url'=>array('/account/account/login'), 'visible'=>Yii::app()->user->isGuest), array('label'=>'Account', 'url'=>array('/account/account/account'), 'visible'=>!Yii::app()->user->isGuest), array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/account/account/logout'), 'visible'=>!Yii::app()->user->isGuest) ), ));
foreach(Yii::app()->user->getFlashes() as $key => $message) { echo '<div class="flash-' . $key . '">' . $message . "</div>\n"; }
Total 5 comments
i like this Thanks...
ApXaHgheJI, there is no account administration, yet. I know about yii-user and yii-user-management modules, they are complete solutions but I don't need all their features.
Yes, this module is intentionally very simple. I hope to build several concise modules to increase their reusability :)
Dude , demo user for administrator ? - I know a module, there you can make some relation between profile fields and other tables, generate N field from Admin-Area, manage users, block , unblock, update, add, delete...
Sorry your module its.... weak for the moment ! But nice try, maybe in the future ... !!!
is now available :)
demo?
Leave a comment
Please login to leave your comment.