Re: Fatal error: Class 'security' not found... in cake 2
It should be needed, it defines the package to import from. On Jan 9, 12:12 pm, Daniel wrote: > Thanks. I'm guessing Utility is not neccessarily needed? > > On Jan 9, 6:15 pm, Miles J wrote: > > > > > > > > > First off, security should be capitalized. Secondly, import it: > > > App::uses('Security', 'Utility'); > > > On Jan 9, 10:09 am, Daniel wrote: > > > > I imported some code from a cake 1.3 application to cake 2, now I get > > > an error on the following line: > > > $this->data['User']['password'] = security::hash($this->data['User'] > > > ['password'], NULL, TRUE); > > > > Fatal error: Class 'security' not found in C:\xampp\htdocs\xx\Model > > > \User.php on line 112- Hide quoted text - > > > - Show quoted text - -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Fatal error: Class 'security' not found... in cake 2
Thanks. I'm guessing Utility is not neccessarily needed? On Jan 9, 6:15 pm, Miles J wrote: > First off, security should be capitalized. Secondly, import it: > > App::uses('Security', 'Utility'); > > On Jan 9, 10:09 am, Daniel wrote: > > > > > I imported some code from a cake 1.3 application to cake 2, now I get > > an error on the following line: > > $this->data['User']['password'] = security::hash($this->data['User'] > > ['password'], NULL, TRUE); > > > Fatal error: Class 'security' not found in C:\xampp\htdocs\xx\Model > > \User.php on line 112- Hide quoted text - > > - Show quoted text - -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Fatal error: Class 'security' not found... in cake 2
and for hasing user passwords use AuthComponent::password('yourpassword'); -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/1/9 Miles J > First off, security should be capitalized. Secondly, import it: > > App::uses('Security', 'Utility'); > > On Jan 9, 10:09 am, Daniel wrote: > > I imported some code from a cake 1.3 application to cake 2, now I get > > an error on the following line: > > $this->data['User']['password'] = security::hash($this->data['User'] > > ['password'], NULL, TRUE); > > > > Fatal error: Class 'security' not found in C:\xampp\htdocs\xx\Model > > \User.php on line 112 > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.com For more options, visit this group > at http://groups.google.com/group/cake-php > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Fatal error: Class 'security' not found... in cake 2
First off, security should be capitalized. Secondly, import it: App::uses('Security', 'Utility'); On Jan 9, 10:09 am, Daniel wrote: > I imported some code from a cake 1.3 application to cake 2, now I get > an error on the following line: > $this->data['User']['password'] = security::hash($this->data['User'] > ['password'], NULL, TRUE); > > Fatal error: Class 'security' not found in C:\xampp\htdocs\xx\Model > \User.php on line 112 -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Fatal error: Class 'security' not found... in cake 2
I imported some code from a cake 1.3 application to cake 2, now I get an error on the following line: $this->data['User']['password'] = security::hash($this->data['User'] ['password'], NULL, TRUE); Fatal error: Class 'security' not found in C:\xampp\htdocs\xx\Model \User.php on line 112 -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php