I am willing to create my own forum or something similar, where one player can ask question or give suggestions and so on. And other players could vote for the question and of course answer to that.
I am able to do that in PHP procedural programming, but I started studying Object Oriented Programming and I know all basics and now I am very keen to do something useful and something bigger in OOP to improve my knowledge.
So, maybe you could give me advices on what classes should I use and maybe something else for a OOP novice. Do not offer me use framework, because first of all I want to create everything by myself. Thank you.
What classes should I use in my project? What else should I know about OOP?
Started by G33k, Sep 12 2010 08:55 AM
4 replies to this topic
#1
Posted 12 September 2010 - 08:55 AM
|
|
|
#2
Posted 12 September 2010 - 09:10 AM
If you want to do this in PHP, the first thing you should do is to know the characteristics of OOP in PHP. The online manual is quite good and has some examples. There are a few special things you must know before writing classes and using objects in PHP.
There exists a module for PHP called SPL (Standard PHP Library) that offers some classes and interfaces you might find useful. There are some other classes implemented by other extensions (for example to manipulate XML data).
There exists a module for PHP called SPL (Standard PHP Library) that offers some classes and interfaces you might find useful. There are some other classes implemented by other extensions (for example to manipulate XML data).
#3
Posted 12 September 2010 - 09:40 AM
An MVC (model-view-controller) framework pattern would most definitely suit your forum task, and help you learn the inner guts of (objects) in PHP.
Model View Controller [Web Application Component Toolkit]
Model View Controller [Web Application Component Toolkit]
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
#4
Posted 12 September 2010 - 05:22 PM
At this stage, you may not even be ready to answer that question. You'll also need to consider how your database will interact with the classes you design, along with how they'll produce output.


Sign In
Create Account


Back to top









