New Installation Of Cruge Auth

Hello Everyone,

I just installed the English version of Cruge and I am now receiving this error from layouts/main.php, line where I point to the login URL.

Error: Alias "application.modules.cruge.components.CrugeWebUser" is invalid.

Downloaded from: https://bitbucket.or…nglish/overview

I have triple checked the instructions to make sure I followed everything correctly and I did. I have checked that all the directories are in lower case and that they have read/write access and they do. I have tried researching this problem with Cruge with no luck, but I will say it is the same problem that I had when I tried to install Yii-user. There seems to me not to be a solution to this problem because all the suggestion do not work.

I don’t know if the fact that I am running this locally on a Mac Mountain Lion OS or that I have yiistrap and yiiwheels installed, but maybe it is.

Below please find my config/main and a line from my layout/main. Thank you in advance for any help.


<?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'=>'Shell Application',


        'aliases' => array(

            'bootstrap' => realpath(__DIR__ . '/../extensions/bootstrap'),

            'yiiwheels' => realpath(__DIR__ . '/../extensions/yiiwheels'),

            ),

	

	// preloading 'log' component

	'preload'=>array('log'),


	// autoloading model and component classes

	'import'=>array(

		'application.models.*',

		'application.components.*',

                'application.modules.cruge.components.*',

                'application.modules.cruge.extensions.crugemailer.*',

                'bootstrap.helpers.TbHtml',

                'application.extensions.yiifilemanager.*',

            ),


	'modules'=>array(

		// uncomment the following to enable the Gii tool

	

		'gii'=>array(

			'class'=>'system.gii.GiiModule',

			'password'=>'pass',

			// If removed, Gii defaults to localhost only. Edit carefully to taste.

			'ipFilters'=>array('127.0.0.1','::1'),

                        'generatorPaths' => array('bootstrap.gii'),

		),

            

                'cruge'=>array(

                        'tableprefix'=>'cruge_',


                        // para que utilice a protected.modules.cruge.models.auth.CrugeAuthDefault.php

                        //

                        // en vez de 'default' pon 'authdemo' para que utilice el demo de autenticacion alterna

                        // para saber mas lee documentacion de la clase modules/cruge/models/auth/AlternateAuthDemo.php

                        //

                        'availableAuthMethods'=>array('default'),


                        'availableAuthModes'=>array('username','email'),


                                        // url base para los links de activacion de cuenta de usuario

                        'baseUrl'=>'http://coco.com/',


                 		// NO OLVIDES PONER EN FALSE TRAS INSTALAR

                 		'debug'=>true,

                 		'rbacSetupEnabled'=>true,

                 		'allowUserAlways'=>true,


                        // MIENTRAS INSTALAS..PONLO EN: false

                        // lee mas abajo respecto a 'Encriptando las claves'

                        //

                        'useEncryptedPassword' => false,


                        // Algoritmo de la función hash que deseas usar

                        // Los valores admitidos están en: http://www.php.net/manual/en/function.hash-algos.php

                        'hash' => 'md5',


                        // Estos tres atributos controlan la redirección del usuario. Solo serán son usados si no

                        // hay un filtro de sesion definido (el componente MiSesionCruge), es mejor usar un filtro.

                        //  lee en la wiki acerca de:

                                        //   "CONTROL AVANZADO DE SESIONES Y EVENTOS DE AUTENTICACION Y SESION"

                                        //

                        // ejemplo:

                        //      'afterLoginUrl'=>array('/site/welcome'),  ( !!! no olvidar el slash inicial / )

                        //      'afterLogoutUrl'=>array('/site/page','view'=>'about'),

                        //

                        'afterLoginUrl'=>null,

                        'afterLogoutUrl'=>null,

                        'afterSessionExpiredUrl'=>null,


                        // manejo del layout con cruge.

                        //

                        'loginLayout'=>'//layouts/column2',

                        'registrationLayout'=>'//layouts/column2',

                        'activateAccountLayout'=>'//layouts/column2',

                        'editProfileLayout'=>'//layouts/column2',

                        // en la siguiente puedes especificar el valor "ui" o "column2" para que use el layout

                        // de fabrica, es basico pero funcional.  si pones otro valor considera que cruge

                        // requerirá de un portlet para desplegar un menu con las opciones de administrador.

                        //

                        'generalUserManagementLayout'=>'ui',


                        // permite indicar un array con los nombres de campos personalizados, 

                        // incluyendo username y/o email para personalizar la respuesta de una consulta a: 

                        // $usuario->getUserDescription(); 

                        'userDescriptionFieldsArray'=>array('email'), 


                    ),

            

	),


	// application components

	'components'=>array(


            // 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>',

			),

		),

		

                'bootstrap' => array(

                        'class' => 'bootstrap.components.TbApi',   

                ),		

		

                'yiiwheels' => array(

                        'class' => 'yiiwheels.YiiWheels',   

                ),

            

                'fileman' => array(

                        'class'=>'application.extensions.yiifilemanager.YiiDiskFileManager',

                        'storage_path' => "/var/tmp/fileman",

                ),


                'db'=>array(

			'connectionString' => 'mysql:host=localhost;dbname=liberscrm',

			'emulatePrepare' => true,

			'username' => 'root',

			'password' => 'pass',

			'charset' => 'utf8',

		),

     		

                //  IMPORTANTE:  asegurate de que la entrada 'user' (y format) que por defecto trae Yii

                //       		sea sustituida por estas a continuación:

                //

                'user'=>array(

                        'allowAutoLogin'=>true,

                        'class' => 'application.modules.cruge.components.CrugeWebUser',

                        'loginUrl' => array('/cruge/ui/login'),

                ),

                'authManager' => array(

               		'class' => 'application.modules.cruge.components.CrugeAuthManager',

                ),

                'crugemailer'=>array(

                        'class' => 'application.modules.cruge.components.CrugeMailer',

                        'mailfrom' => 'email-desde-donde-quieres-enviar-los-mensajes@xxxx.com',

                        'subjectprefix' => 'Tu Encabezado del asunto - ',

                        'debug' => true,

                ),

                'format' => array(

                        'datetimeFormat'=>"d M, Y h:m:s a",

                ),


                'errorHandler'=>array(

			// use 'site/error' action to display errors

			'errorAction'=>'site/error',

		),

                        

		'log'=>array(

			'class'=>'CLogRouter',

			'routes'=>array(

				array(

					'class'=>'CFileLogRoute',

					'levels'=>'error, warning',

				),

				// uncomment the following to show log messages on web pages

				

			/**	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',

	),

); 


 array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>Yii::app()->user->ui->logoutUrl, 'visible'=>!Yii::app()->user->isGuest),




Newbie mistake.

I added everything under models not modules.

Yay… that’s why I posted directory structure on extension page for you. Hope you’ve seen it on time