From ver. 0.5 to 0.6
- UserModule::disableEmailActivation has been renamed to
UserModule::enableEmailActivation (default to true)
Open ... protected/modules/user/models/YumUser.php
change line (about line 120) :
if(YumWebModule::yum()->disableEmailActivation == true)
to
if(YumWebModule::yum()->enableEmailActivation == true)
Remember default value for property enableEmailActivation is
true, so you must provide the server with mail server, because
confirmation e-mail automaticaly send to your email address. If
you in development state change default enableEmailActivation to
false
Open : protected\modules\user\UserModule.php
change :
public $enableEmailActivation = true;
to :
public $enableEmailActivation = false;
with this option your registration is not validated by email and
automaticaly registered to the application database.
moisty70, on 23 June 2010 - 05:06 AM, said:
Hi,
Great Module!, Thanks for your great job.
When trying to create a new user (registration) I got this error:
CException
Description
Property "UserModule.disableEmailActivation" is not defined.
Source File
D:\MOI\yii-1.1.2.r2086\framework\base\CModule.php(88)
00076: /**
00077: * Getter magic method.
00078: * This method is overridden to support accessing application components
00079: * like reading module properties.
00080: * @param string application component or property name
00081: * @return mixed the named property value
00082: */
00083: public function __get($name)
00084: {
00085: if($this->hasComponent($name))
00086: return $this->getComponent($name);
00087: else
00088: return parent::__get($name);
00089: }
00090:
00091: /**
00092: * Checks if a property value is null.
00093: * This method overrides the parent implementation by checking
00094: * if the named application component is loaded.
00095: * @param string the property name or the event name
00096: * @return boolean whether the property value is null
00097: */
00098: public function __isset($name)
00099: {
00100: if($this->hasComponent($name))
Stack Trace
#0 D:\MOI\yii-1.1.2.r2086\framework\base\CModule.php(88): CComponent->__get('disableEmailAct...')
#1 D:\MOI\yii-1.1.2.r2086\yiiregalos\protected\modules\user\UserModule.php(101): CModule->__get('disableEmailAct...')
#2 D:\MOI\yii-1.1.2.r2086\yiiregalos\protected\modules\user\models\YumUser.php(120): UserModule->__get('disableEmailAct...')
#3 D:\MOI\yii-1.1.2.r2086\yiiregalos\protected\modules\user\controllers\YumUserController.php(94): YumUser->register('moi', 'moi12', 'noanonimo@gmail...')
#4 D:\MOI\yii-1.1.2.r2086\framework\web\actions\CInlineAction.php(32): YumUserController->actionRegistration()
#5 D:\MOI\yii-1.1.2.r2086\framework\web\CController.php(300): CInlineAction->run()
#6 D:\MOI\yii-1.1.2.r2086\framework\web\filters\CFilterChain.php(129): CController->runAction(Object(CInlineAction))
#7 D:\MOI\yii-1.1.2.r2086\framework\web\filters\CFilter.php(41): CFilterChain->run()
#8 D:\MOI\yii-1.1.2.r2086\framework\web\CController.php(999): CFilter->filter(Object(CFilterChain))
#9 D:\MOI\yii-1.1.2.r2086\framework\web\filters\CInlineFilter.php(59): CController->filterAccessControl(Object(CFilterChain))
#10 D:\MOI\yii-1.1.2.r2086\framework\web\filters\CFilterChain.php(126): CInlineFilter->filter(Object(CFilterChain))
#11 D:\MOI\yii-1.1.2.r2086\framework\web\CController.php(283): CFilterChain->run()
#12 D:\MOI\yii-1.1.2.r2086\framework\web\CController.php(257): CController->runActionWithFilters(Object(CInlineAction), Array)
#13 D:\MOI\yii-1.1.2.r2086\framework\web\CWebApplication.php(320): CController->run('registration')
#14 D:\MOI\yii-1.1.2.r2086\framework\web\CWebApplication.php(120): CWebApplication->runController('user/user/regis...')
#15 D:\MOI\yii-1.1.2.r2086\framework\base\CApplication.php(135): CWebApplication->processRequest()
#16 D:\MOI\yii-1.1.2.r2086\yiiregalos\index.php(12): CApplication->run()
#17 {main}
2010-06-23 12:17:31 Apache/2.2.8 (Win32) DAV/2 mod_ssl/2.2.8 OpenSSL/0.9.8g mod_autoindex_color mod_fastcgi/2.4.6 PHP/5.2.5 Yii Framework/1.1.2