Closed Thread
Results 1 to 4 of 4

Thread: poo with php

  1. #1
    dimitry is offline Learning Programmer
    Join Date
    Mar 2009
    Location
    Switzerland
    Posts
    40
    Rep Power
    0

    Question poo with php

    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!
    Lord Darkdriver by Dimitry

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #2
    Join Date
    Apr 2009
    Location
    Trapped in my own little world.
    Posts
    2,487
    Rep Power
    33

    Re: poo with php

    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.

  4. #3
    dimitry is offline Learning Programmer
    Join Date
    Mar 2009
    Location
    Switzerland
    Posts
    40
    Rep Power
    0

    Re: poo with php

    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!
    Lord Darkdriver by Dimitry

  5. #4
    Join Date
    Sep 2007
    Location
    Karlstad, Sweden
    Posts
    3,082
    Blog Entries
    7
    Rep Power
    42

    Re: poo with php

    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

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts