Re: How to Call Library Function from a Component
Thank you. On Sep 9, 12:04 am, Martin Westin wrote: > I believe you can call it statically like this: Security::hash(...); > > /Martin > > On Sep 9, 8:45 am, Sarah wrote: > > > I want to call the hash function from the Core Security Library. > > > In this controller I can simply call $this->hash(...); > > > but in the component I get an error: Fatal error: Call to undefined > > method obAuthComponent::hash() > > > I tried $this->ControllerName->hash and $this->ModelName->hash > > > and I can't find anything in the manual about it. > > > I would appreciate it if someone could point out how to call a > > function from the core libraries in a component (or post a link of a > > resource, I just can't find one!). > > > Many thanks, > > ~Sarah --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com 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?hl=en -~--~~~~--~~--~--~---
Re: How to Call Library Function from a Component
I believe you can call it statically like this: Security::hash(...); /Martin On Sep 9, 8:45 am, Sarah wrote: > I want to call the hash function from the Core Security Library. > > In this controller I can simply call $this->hash(...); > > but in the component I get an error: Fatal error: Call to undefined > method obAuthComponent::hash() > > I tried $this->ControllerName->hash and $this->ModelName->hash > > and I can't find anything in the manual about it. > > I would appreciate it if someone could point out how to call a > function from the core libraries in a component (or post a link of a > resource, I just can't find one!). > > Many thanks, > ~Sarah --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com 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?hl=en -~--~~~~--~~--~--~---
How to Call Library Function from a Component
I want to call the hash function from the Core Security Library. In this controller I can simply call $this->hash(...); but in the component I get an error: Fatal error: Call to undefined method obAuthComponent::hash() I tried $this->ControllerName->hash and $this->ModelName->hash and I can't find anything in the manual about it. I would appreciate it if someone could point out how to call a function from the core libraries in a component (or post a link of a resource, I just can't find one!). Many thanks, ~Sarah --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com 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?hl=en -~--~~~~--~~--~--~---