Yii_User_Managment Issues

Hello ,

I’m trying to setup User_Management

My config/main.php file is as such …

<?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'=&gt;dirname(__FILE__).DIRECTORY_SEPARATOR.'..',


'name'=&gt;'The Arts Trust',





// preloading 'log' component


'preload'=&gt;array('log'),





// autoloading model and component classes


'import'=&gt;array(


	'application.models.*',


	'application.components.*',


	'application.modules.user.models.*',


),


		   


'modules'=&gt; array(


    


	'user' =&gt; array(


    'debug' =&gt; true


    ),


	// uncomment the following to enable the Gii tool


	


	'gii'=&gt;array(


		'class'=&gt;'system.gii.GiiModule',


		'password'=&gt;'password',


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


		'ipFilters'=&gt;array('127.0.0.1','::1'),


	)


	


	),


	


	


    	


	// application components


'components'=&gt;array(


	'User'=&gt;array(


		// enable cookie-based authentication


		//'class' =&gt; 'application.modules.user.components.YumWebUser',


		'class' =&gt; 'User',


		


	),


	 'user'=&gt;array(


	 'allowAutoLogin'=&gt;true,


		'loginUrl' =&gt; array('//user/user/login'),


		),


	// uncomment the following to enable URLs in path-format


	/*


	'urlManager'=&gt;array(


		'urlFormat'=&gt;'path',


		'rules'=&gt;array(


			'&lt;controller:&#092;w+&gt;/&lt;id:&#092;d+&gt;'=&gt;'&lt;controller&gt;/view',


			'&lt;controller:&#092;w+&gt;/&lt;action:&#092;w+&gt;/&lt;id:&#092;d+&gt;'=&gt;'&lt;controller&gt;/&lt;action&gt;',


			'&lt;controller:&#092;w+&gt;/&lt;action:&#092;w+&gt;'=&gt;'&lt;controller&gt;/&lt;action&gt;',


		),


	),


	*/


	/*'db'=&gt;array(


		'connectionString' =&gt; 'sqlite:'.dirname(__FILE__).'/&#46;&#46;/data/testdrive.db',


	),*/


	// uncomment the following to use a MySQL database


	


	'db'=&gt;array(


		'connectionString' =&gt; 'mysql:host=localhost;dbname=arts_trust_users',


		'emulatePrepare' =&gt; true,


		'username' =&gt; 'root',


		'password' =&gt; 'password',


		'charset' =&gt; 'utf8',


	),


	


	'errorHandler'=&gt;array(


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


		'errorAction'=&gt;'site/error',


	),


	'log'=&gt;array(


		'class'=&gt;'CLogRouter',


		'routes'=&gt;array(


			array(


				'class'=&gt;'CFileLogRoute',


				'levels'=&gt;'error, warning',


			),


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


			/*


			array(


				'class'=&gt;'CWebLogRoute',


			),


			*/


		),


	),


),





// application-level parameters that can be accessed


// using Yii::app()-&gt;params['paramName']


'params'=&gt;array(


	// this is used in contact page


	'adminEmail'=&gt;'webmaster@example.com',


),

… but i get UserModule.php file not found error

I think the main.php is as explained in the install instructions …

seems to be something to do with placement of

‘user’ => array(

    'debug' =&gt; true


    ),

within the file …

any help greatly appreciated

Russ

Dear Friend

By having the following code , yii will look for userModule.php in

protected/modules/user/userModule.php..If file is not found,it throws error.




'modules'=> array(

'user' => array(

'debug' => true

),

'gii'=>array(

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

'password'=>'password',

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

)




Otherwise you have to declare file path.




'modules'=> array(

'user' => array(

'class'=>'file path',//specify the path to userModule.php. you can look at gii module below for example.

'debug' => true

),

'gii'=>array(

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

'password'=>'password',

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

)