Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3482208
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T10:31:57+00:00 2026-05-18T10:31:57+00:00

I hope you will help me! =) Since I work with PHP, I always

  • 0

I hope you will help me! =)

Since I work with PHP, I always code procedural. Why? The answer is simple. I don’t know how to work with objects etc.. But I want to! Really… =) I search the net and found this tutorial – Object Oriented Programming with PHP. So I read it, learned the syntax. A little bit experiment with given code. And I count it as learned! xD

Let me explain the problem. For example, I want to create users system. Before it was easy to do. I just create one file as HTML form. User input username and password. It’s sends to another file where I validate it. If all is OK then PHP writes a new entry to the database. Otherwise error is created. The same with sign in, just for entry – session variable created with user ID. And how to check if user is sign in? Just check for session variable. No problems. And the problem comes… With objects? How can I do it? What’s object (user, some validation?)? Where’re objects? And so on with stupid, even newbie questions… =(

Could everyone create little example for me? Really for newbie in this. I really want to learn. Thanks. =)

P.S. Sorry for my English, it’s not my native language. =P

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T10:31:57+00:00Added an answer on May 18, 2026 at 10:31 am

    This is an extreemly broad question. Youre asking us to give you a skeleton implementation of the core of an entire application! 🙂

    Most of this also depends on how you want the architecture of your app. YOU have to create all these classes or use open source implementations of them, they are not built in to PHP. That is why most people use a framework that provides most of this base stuff.

    However I wouldnt recommend jsumping directly to using a framework with your base level of knowledge. ID urge you to read up OOP patterns and concepts. This article while old gives a direct comparison of moving from procedural to OOP and walks you through creating a basic MVC framework of your own. Ther are lots of resources similar to this so i would google if i were you.

    I dont know that i would use such a framework in production but the process of creating it and making soem personal apps with it is invaluable to learning. After you get some of the key concepts and patterns down then i would choose a framework thats got a lot of structure (in your case the more rigid the better, since youre just learning) and begin working with that.

    While i dont personally use it because its not flexible enough I think i would recommend CakePHP in your case. Symfony might also be a good choice, but its extremely complex and if youre new to OOP you may lose your mind… Ditto for Zend 🙂

    I would also recommend PHP Objects, Patterns, and Practice, Second Edition as a general reference book. Its similar to PoEAA but specific to php implementations and examples.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm starting to develop a web application in PHP that I hope will become
I have now 1gb ram at work(i hope that will change soon) and jboss
I'm learning Haskell in the hope that it will help me get closer to
I hope everyone will pardon the length, and narrative fashion, of this question. I
I just installed the FindBugs plugin for Eclipse, with the hope that it will
I am new to C++. I am getting HEAP CORRUPTION ERROR. Any help will
Hope anyone can shed light on this so I can use pens with dash
I hope this question does not come off as broad as it may seem
I hope this question is not considered too basic for this forum, but we'll
I hope this is programmer-related question. I'm in the hobby business of C# programming.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.