Tagged Questions
7
votes
1answer
514 views
Critique Request: PHP Request-Method Class
I'm working on a general Requestmethod class which sanitizes and recasts the input of users in an automatic fashion. I've also tried to do array-access in cookies.
...
3
votes
1answer
353 views
Help improve my first PHP class
I recently started to learn more about OOP in PHP and I created a website for testing. I have 4 classes: database, user, ...
2
votes
3answers
230 views
Am I utilizing classes and OOP efficiently?
In my last question on Stack Overflow I was a very confused newcomer about classes and OOP and how to correctly implement everything to make things easier. So I started a different example to ...
1
vote
2answers
2k views
3
votes
2answers
319 views
Classes and variables in PHP
First of all, I'm trying to learn OOP PHP, so any advise will be great.
My idea is to create some kind of MVC Framework CMS kind of thing, just to learn OOP PHP and MVC well.
Let's say that I've got ...
3
votes
1answer
362 views
How to convert my classes to Dependency injection?
I am still learning to develop my skills in OOP.
It uses a combination of the factory and its real singletons?
As I did more research, I have realized this design pattern is bad because of global ...
3
votes
1answer
1k views
PHP Config Class
I'm working on a config class for PHP, where I can easily bring in config options. Any improvements/suggestions are appreciated.
Example usage:
...