Unaccessible function
Posted: Mon Jan 01, 2007 2:12 pm
Hey, I have a script with this type of architecture:
class Guava
->Function content()
-->Function content_method()
class Get
->function method()
the content_method() function is inside the content() function which is inside the Guava Class. I am sorry if this is confusing but ask me if you would like me to further explain the situation. Basically content_method() needs to be accessed by method() inside the Get Class, and because content_method() is inside a function inside a class, I am getting an error:
thanks, and sorry for the confusing explination
class Guava
->Function content()
-->Function content_method()
class Get
->function method()
the content_method() function is inside the content() function which is inside the Guava Class. I am sorry if this is confusing but ask me if you would like me to further explain the situation. Basically content_method() needs to be accessed by method() inside the Get Class, and because content_method() is inside a function inside a class, I am getting an error:
Does anyone know how I can access the return value in content_method() from method()?Fatal error: Call to undefined method Guava::content_method() in C:\Documents and Settings\Administrator\My Documents\My Projects\Web Projects\Guava\guav-includes\guav_library.php on line 229
thanks, and sorry for the confusing explination