Hi cris,
congratulations for the your work!!
I’m trying to configure the extension, but not getting to.
I did download the following packages:
yii-account https://github.com/nordsoftware/yii-account
Yiistrap http://github.com/crisu83/yiistrap
YiiPassword https://github.com/phpnode/yiipassword
RandomLib https://github.com/ircmaxell/RandomLib
SecurityLib https://github.com/ircmaxell/SecurityLib
put everything in the Extensions folder
and my main.php:
<?php
// uncomment the following to define a path alias
// Yii::setPathOfAlias('local','path/to/local-folder');
// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
return array(
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name'=>'My Web Application',
'aliases'=>array(
'bootstrap'=>realpath(__DIR__ . '/../extensions/bootstrap'),
'\nordsoftware\yii_account'=>__DIR__ . '/../extensions/yii-account/src',
'\YiiPassword'=>__DIR__ . '/../extensions/yiipassword/src',
'\RandomLib'=>__DIR__ . '/../extensions/randomlib/lib',
'\SecureLib'=>__DIR__ . '/../extensions/securelib/lib',
),
// preloading 'log' component
'preload'=>array('log'),
// autoloading model and component classes
'import'=>array(
'application.models.*',
'application.components.*',
'bootstrap.helpers.TbHtml',
),
'modules'=>array(
'gii'=>array(
'generatorPaths'=>array('bootstrap.gii'),
'class'=>'system.gii.GiiModule',
'password'=>'*****',
// If removed, Gii defaults to localhost only. Edit carefully to taste.
'ipFilters'=>array('127.0.0.1','::1'),
),
'account'=>array(
'class'=>'\nordsoftware\yii_account\Module',
),
),
// application components
'components'=>array(
'cache'=>array('class'=>'system.caching.CFileCache'),
'bootstrap'=>array(
'class'=>'bootstrap.components.TbApi',
),
'user'=>array(
'class'=>'\nordsoftware\yii_account\components\WebUser',
// enable cookie-based authentication
'allowAutoLogin'=>true,
),
'urlManager'=>array(
'urlFormat'=>'path',
'rules'=>array(
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),
),
'db'=>array(
'connectionString'=>'mysql:host=localhost;dbname=paintball',
'emulatePrepare'=>true,
'username'=>'root',
'password'=>'',
'charset'=>'utf8',
'enableParamLogging'=>true,
'tablePrefix'=>'',
),
'errorHandler'=>array(
// use 'site/error' action to display errors
'errorAction'=>'site/error',
),
'log'=>array(
'class'=>'CLogRouter',
'routes'=>array(
array(
'class'=>'CFileLogRoute',
'levels'=>'error, warning',
),
array(
'class'=>'CWebLogRoute',
),
),
),
),
// application-level parameters that can be accessed
// using Yii::app()->params['paramName']
'params'=>array(
// this is used in contact page
'adminEmail'=>'webmaster@example.com',
),
);
is giving the following error: "Alias "nordsoftware.yii_account.components" is invalid. Make sure it points to an existing directory or file."
can you help me?
Thanks,
Bruno Piaui