- Registro, activación y entrada de usuarios git-svn-id: https://192.168.0.254/svn/Rodax.factuges_web/trunk@2 e455b18d-f7fe-5245-9c43-e2c35af70a32
129 lines
4.7 KiB
PHP
129 lines
4.7 KiB
PHP
<?php
|
|
|
|
// uncomment the following to define a path alias
|
|
// Yii::setPathOfAlias('local','path/to/local-folder');
|
|
// Define a path alias for the Bootstrap extension as it's used internally.
|
|
// In this example we assume that you unzipped the extension under protected/extensions.
|
|
Yii::setPathOfAlias('bootstrap', dirname(__FILE__) . '/../extensions/bootstrap');
|
|
|
|
// This is the main Web application configuration. Any writable
|
|
// CWebApplication properties can be configured here.
|
|
return array(
|
|
'basePath' => dirname(__FILE__) . DIRECTORY_SEPARATOR . '..',
|
|
'name' => 'FactuGES',
|
|
'theme' => 'factuges',
|
|
'language' => 'es',
|
|
// preloading 'log' component
|
|
'preload' => array('log'),
|
|
// autoloading model and component classes
|
|
'import' => array(
|
|
// models
|
|
'application.models.*',
|
|
'application.models.formularios.*',
|
|
'application.modules.usuario.models.*',
|
|
'application.modules.usuario.models.formularios.*',
|
|
// Componentes y extensiones
|
|
'application.components.*',
|
|
'application.extensions.yii-mail.YiiMailMessage',
|
|
'application.modules.usuario.components.*',
|
|
),
|
|
'modules' => array(
|
|
'usuario' => array(
|
|
'nombreRemitenteEMail' => 'factuges@factuges.com',
|
|
'urlLogin' => "/usuario/logout",
|
|
'urlPerfil' => "/usuario/perfil",
|
|
'urlRegistro' => "/usuario/registro",
|
|
'urlRecuperar' => "/usuario/registro/recuperar",
|
|
'urlActivar' => "/usuario/registro/activar",
|
|
),
|
|
'gii' => array(
|
|
'class' => 'system.gii.GiiModule',
|
|
'password' => '1234',
|
|
// If removed, Gii defaults to localhost only. Edit carefully to taste.
|
|
'ipFilters' => array('127.0.0.1', '::1'),
|
|
'generatorPaths' => array('bootstrap.gii'),
|
|
),
|
|
),
|
|
// application components
|
|
'components' => array(
|
|
'user' => array(
|
|
'class' => 'WebUser',
|
|
// enable cookie-based authentication
|
|
'allowAutoLogin' => true,
|
|
),
|
|
'bootstrap' => array(
|
|
'class' => 'bootstrap.components.Bootstrap',
|
|
),
|
|
// uncomment the following to enable URLs in path-format
|
|
/*
|
|
'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=factuges_dev',
|
|
'emulatePrepare' => true,
|
|
'username' => 'root',
|
|
'password' => '',
|
|
'charset' => 'utf8',
|
|
),
|
|
'errorHandler' => array(
|
|
// use 'site/error' action to display errors
|
|
'errorAction' => 'site/error',
|
|
),
|
|
'cache' => array(
|
|
'class' => 'system.caching.CDummyCache'
|
|
),
|
|
'mail' => array(
|
|
'class' => 'application.extensions.yii-mail.YiiMail',
|
|
'viewPath' => 'application.views.mail',
|
|
'transportType' => 'smtp',
|
|
'transportOptions' => array(
|
|
'host' => 'mail.rodax-software.com',
|
|
'encryption' => '',
|
|
'username' => 'mantenimiento+rodax-software.com',
|
|
'password' => '34y96w6d',
|
|
'port' => 25,
|
|
),
|
|
'viewPath' => 'application.views.mails',
|
|
'logging' => true,
|
|
'dryRun' => false
|
|
),
|
|
// Application Log
|
|
'log' => array(
|
|
'class' => 'CLogRouter',
|
|
'routes' => array(
|
|
array(
|
|
'class' => 'CFileLogRoute',
|
|
'levels' => 'trace, info, error, warning',
|
|
'categories' => 'system.db.*',
|
|
'logFile' => 'sql.log',
|
|
),
|
|
// Save log messages on file
|
|
array(
|
|
'class' => 'CFileLogRoute',
|
|
'levels' => 'trace',
|
|
'categories' => 'application.*',
|
|
),
|
|
// Show log messages on web pages
|
|
array(
|
|
'class' => 'CWebLogRoute',
|
|
'levels' => 'error, warning',
|
|
'categories' => 'application.*',
|
|
'showInFireBug' => true,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
// application-level parameters that can be accessed
|
|
// using Yii::app()->params['paramName']
|
|
'params' => array(
|
|
// this is used in contact page
|
|
'adminEmail' => 'factuges@factuges.com',
|
|
),
|
|
); |