Hi!
so hard to find good and complete tuto on the net about POO('don't know how it is in english... perhaps programming by object...?) in php, so, I've got the following question: What can I do to call a class who is not in the file I use?
I know the syntaxe "new myClass();" but it doesn't work... I don't use any framework and I'm calling this class from the index in classic php...
Have you got an idea what's wrong (for this message:
"Fatal error: Class 'Html' not found in C:\...\index.php on line 5"[I've called my class Html])?
Thanks from advance!
Bye!
poo with php
Started by dimitry, Jan 26 2010 06:00 AM
3 replies to this topic
#1
Posted 26 January 2010 - 06:00 AM
Lord Darkdriver by Dimitry
|
|
|
#2
Posted 26 January 2010 - 06:12 AM
You need to include the class in your scope. You might check for caps or not. Is it "html" or "HTML" or "Html".
It's OOP in English but I figured POO was the same thing.
It's OOP in English but I figured POO was the same thing.
#3
Posted 26 January 2010 - 06:44 AM
Thank you!
It works! You've right, it was only the include I needed and change the symbols for my comments: I've put "//" and "/*" only closed (*/) some lines under...
This subject can be closed!
Bye!
It works! You've right, it was only the include I needed and change the symbols for my comments: I've put "//" and "/*" only closed (*/) some lines under...
This subject can be closed!
Bye!
Lord Darkdriver by Dimitry
#4
Posted 26 January 2010 - 07:52 PM
by the way, it's called OOP (Object Oriented Programming). the other one I hope you do on your toilet :-)
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall
I study Information Systems at Karlstad University when I'm not on CodeCall


Sign In
Create Account


Back to top










