Jump to content
Larry Ullman's Book Forums


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Luis

  • Rank
  1. thanks for answering Larry
  2. Thanks Larry. For example, in Laravel, in the config file, I can setup a variable for the time zone, for example "America/Mexico" and when I work with dates like (Now() function) the function returns the time and date of this specific time zone. Can I do something like this in YII ?, I'm asking this because of the shared hosting I use, and I don't have the change to configure the web server's time zone directly.
  3. How can I work with a specific Time Zone inside my Application in Yii ?
  4. Thanks Larry, The Yii Book is really great, I'm waiting for the oncomming chapters
  5. thankyou Larry, the code: ------------config/main.php // application components 'components'=>array( 'user'=>array( // enable cookie-based authentication 'allowAutoLogin'=>true, ), 'securityManager' => array( 'hashAlgorithm' => 'sha256', 'validationKey' => 'lvkj23mn5;9 cjl;sd;ij25KJE5r'), --------------model protected function beforeSave(){ $this->password = Yii::app()->securityManager->computeHMAC($this->password); return parent::beforeSave(); }
  • Create New...