Yii-User-Management

hi there

tried installing this but no luck

the link to the module is here

I followed the steps but can’t seem to get it to work…anyone tried this lately?

the last error I got was this:


include(UserModule.php): failed to open stream: No such file or directory

in the modules folder… I unzipped the package and it created the following directories…are they suppose to be withing a specific folder or simply all under "modules" like I have them here (see attached file)?

5461

modules.JPG

I am not shure what is your problem but I run this extension. Do you read install guide? It’s in directory user/docs/install_tutorial.txt. Follow the steps there and you should get it right.

yes I did .

since you have it working… can you tell me what your "modules" directory looks like? when you unzipped the code did you dump all the folders directly under modules directly or did you create a sub directory for it?

I unzipped them into modules folder. No sub-directory. I will check it again after few hours and I will write to you then.

my full main.php file is below

I create the testdrive db

and the following folders are in my protected/modules folder

[indent]avatar

friendship

membership

message

profile

registration

role

user

usergroup

[/indent]

main.php (config folder)




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


	// preloading 'log' component

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


	// autoloading model and component classes

	'import'=>array(

		'application.models.*',

		'application.components.*',

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


	),


	'modules'=>array(

		// uncomment the following to enable the Gii tool

		

		'gii'=>array(

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

			'password'=>'pass123',

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

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

		),

		

	  'user' => array( 'debug' => true ),

	),


	// application components

	'components'=>array(

	'User'=>array(

		'class' => 'User',

		),

		

		'user'=>array(

		'class' => 'application.modules.user.components.YumWebUser',

		'allowAutoLogin'=>true,

		'loginUrl' => array('//user/user/login'),

      

		),

		

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

			),

		),

		


		// uncomment the following to use a MySQL database

		

		'db'=>array(

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

			'emulatePrepare' => true,

			'username' => 'root',

			'password' => '',

			'charset' => 'utf8',

			

		),

		

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

	),

);



Hi, I’m also struggling with this, something must be missing from the readme file because I also only get error messages. if it’s working for you, it would be nice to go over the whole process or together find out why it’s giving error messages. thanks!