Re: How to Call Library Function from a Component

2009-09-09 Thread Sarah
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->has

Re: How to Call Library Function from a Component

2009-09-09 Thread Martin Westin
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

How to Call Library Function from a Component

2009-09-08 Thread Sarah
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