southbeach
Programmer
OK, I have three PHP scripts: index.php, common/common.php and classes/main.php
index.php is, of course, my default script/page. Here, I use
I also have routines where I conditionally call my class methods within index.php - These work very nicely!
The problem rises when I try to use my class methods within common/common.php. I call a function which in turn will call on class methods, same as index.php, but I get errors
I am not using "public" or anything too fancy in my class methods (newbie) so, as I hit the web looking for answer, I figure I drop this question in hoping for your usual assistance.
Thanks!
--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.
index.php is, of course, my default script/page. Here, I use
Code:
require("classes/main.php");
require("common/common.php");
$users = new users();
I also have routines where I conditionally call my class methods within index.php - These work very nicely!
The problem rises when I try to use my class methods within common/common.php. I call a function which in turn will call on class methods, same as index.php, but I get errors
Code:
Fatal error: Call to undefined method stdClass::listusers()
I am not using "public" or anything too fancy in my class methods (newbie) so, as I hit the web looking for answer, I figure I drop this question in hoping for your usual assistance.
Thanks!
--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.