Welcome Guest, Not a member yet? Register   Sign In
calling functions from another function of the same library
#1

[eluser]mayur[/eluser]
Hi!
I hv spent 2 hrs figuring it out...but still can't..
Someone plz post a reply...

I made a library and within that library tried to call a function from another function of the same..library..\
the code looks like this..

Code:
function createAccount()
    {
           //
           ..
           $activationCode => $this->CI->authentication->generateActivationCode();
           ...
        }

function generateActivationCode()
{
         //something here....
         //return something...
}


It gives an error somewat like this:...

Quote:Fatal error: Call to undefined method Account::generateActivationCode()


Thanx..!
#2

[eluser]danmontgomery[/eluser]
Code:
$this->generateActivationCode();




Theme © iAndrew 2016 - Forum software by © MyBB