Page 1 of 1

calling a method in an included file

Posted: Tue Oct 17, 2006 9:09 am
by tommy1987
I am trying to call a method in an included file, but it wont let me call it. The error it says is: call to undefined method.

I am puzzled since include should surely include the entire source of the file you choose to include.

If you cannot do this, how can I call a method in another PHP file because I want to keep PHP seperate from the rest of the page source since I am working on a page with another person that gets scared by PHP, that and it just gets in the way of the design.

Thanks, Tom

Posted: Tue Oct 17, 2006 9:26 am
by feyd
Code please.

Posted: Tue Oct 17, 2006 1:51 pm
by RobertGonzalez
First recommendation: check the spelling and case of the method name. Next recommendation: Make sure the include is actually including. Most important recommendation: Post some code so we can see what is happening.