Yii Framework Forum: Randomess Extension - Yii Framework Forum

Jump to content

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

Randomess Extension Can't run extension Rate Topic: -----

#1 User is offline   Gab√£o Leal 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 05-May 13

Posted 06 May 2013 - 01:16 PM

Hello guys.

I am a Yii newbie and also stuck in some trouble. I tryed the documentation on how to use extensions but i just can't get "Randomness" to work. I've already unzipped it in 'protected/extensions'. What should i do next? Is it a component? An attachment?

Always when i try the 'crypt($this->password, Randomness::blowfishSalt())' it returns the followuing error:

PHP warning

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

E:\D\Dropbox\htdocs\yii\framework\YiiBase.php(421)

409 {
410 include($classFile);
411 if(YII_DEBUG && basename(realpath($classFile))!==$className.'.php')
412 throw new CException(Yii::t('yii','Class name "{class}" does not match class file "{file}".', array(
413 '{class}'=>$className,
414 '{file}'=>$classFile,
415 )));
416 break;
417 }
418 }
419 }
420 else
421 include($className.'.php');
422 }
423 else // class name with namespace in PHP 5.3
424 {
425 $namespace=str_replace('\\','.',ltrim($className,'\\'));
426 if(($path=self::getPathOfAlias($namespace))!==false)
427 include($path.'.php');
428 else
429 return false;
430 }
431 return class_exists($className,false) || interface_exists($className,false);
432 }
433 return true;
0

#2 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 06 May 2013 - 02:43 PM

/* moved from Installation and Setup */
"Less noise - more signal"
0

#3 User is offline   Travis Stroud 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 34
  • Joined: 29-August 12

Posted 10 May 2013 - 02:37 PM

I suggest moving the Randomness.php file from your /protected/extensions/ directory into your /protected/components/ directory.
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