Yii Framework Forum: Yii Usergroups Installation Fail - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Yii Usergroups Installation Fail Rate Topic: -----

#1 User is offline   beginner123 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 84
  • Joined: 03-March 14

Posted 19 March 2014 - 09:07 AM

Hi all, could anyone please help me on how to install Yii UserGroups correctly. I have already followed the instructions here but I have no idea why there is still no way to get the installation done. It returned an error 'Property "CWebApplication.eauth" is not defined'. How to solve this error? Any help is much appreciated. Thanks in advance. Please help me~

Here's my code:
config/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.

Yii::setPathOfAlias('bootstrap', dirname(__FILE__).'/../extensions/bootstrap');
return array(
    'theme'=>'bootstrap', // requires you to copy the theme under your themes directory
	'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
	'name'=>'Course & Timetabling System',

	// preloading 'log' component
	'preload'=>array('log',
	    'bootstrap',
    ),

	// autoloading model and component classes
	'import'=>array(
	    'application.extensions.KEmail.KEmail',
		'application.helpers.*',
		'application.models.*',
		'application.components.*',
	),

	'modules'=>array(
		// uncomment the following to enable the Gii tool
		'userGroups'=>array(
        // accessCode can be changed
        'accessCode'=>'123456',
        // salt can be changed
        'salt'=>'123456',
           ),
		   
		'gii'=>array(
			'class'=>'system.gii.GiiModule',
			'password'=>'abc',
			'generatorPaths'=>array(
                'ext.giiplus',
            ),
			// If removed, Gii defaults to localhost only. Edit carefully to taste.
			'ipFilters'=>array('127.0.0.1','::1'),
		),
		
	),

	// application components
	'components'=>array(
	    'bootstrap' => array(
        'class' => 'ext.bootstrap.components.Bootstrap',
        ),			
		'user'=>array(
			// enable cookie-based authentication
			'allowAutoLogin'=>true,
			'class'=>'userGroups.components.WebUserGroups',
		),
		'email'=>array(
            'class'=>'application.extensions.KEmail.KEmail',
            'host_name'=>'smtp.gmail.com',
            'user'=>'xxx@gmail.com',
            'password'=>'xxxxxxxxxxx',
            'host_port'=>465,
            'ssl'=>'true',
        ), 
		'image'=>array(
          'class'=>'application.extensions.image.CImageComponent',
            // GD or ImageMagick
            'driver'=>'GD',
            // ImageMagick setup path
            'params'=>array('directory'=>'/opt/local/bin'),
        ),
		// uncomment the following to enable URLs in path-format
		
		'urlManager'=>array(
			'urlFormat'=>'path',
			'showScriptName'=>false,
			'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' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
		),
		*/
		
		// uncomment the following to use a MySQL database
		
		'db'=>array(
			'connectionString' => 'mysql:host=localhost;dbname=testdb',
			'emulatePrepare' => true,
			'username' => 'root',
			'password' => '',
			'charset' => 'utf8',
			'tablePrefix' => 'tbl_',
		),
		
		'errorHandler'=>array(
			// use 'site/error' action to display errors
			'errorAction'=>'site/error',
		),
		'log'=>array(
			'class'=>'CLogRouter',
			'routes'=>array(
				array(
					'class'=>'CFileLogRoute',
					'levels'=>'error, warning, info, trace, notice',
				),
				// 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'=>'admin@yahoo.com',
	),
);


.htaccess
Options +FollowSymLinks
IndexIgnore */*
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /test1/

# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# otherwise forward it to index.php
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users