All Questions
12 questions
3
votes
2
answers
209
views
Router and solid principle
I would like to know if my Routing system respects the solid principle ?
The system is simple, Router class contains the routes and returns the correct route and Route class represents a route, ...
1
vote
2
answers
16k
views
PHP Routing with MVC Structure
I'm trying to do a simple CMS with PHP from scratch using MVC structure.
Yesterday I posted this, which is a login system using PHP and it works but it has a handful of problems regarding the OOP ...
1
vote
1
answer
167
views
Simple router for updating users
I need to know if I am going in the right direction with my code so far. I am really trying hard to transition from procedural, page-based programming into OOP MVC. So far I have written a simple ...
7
votes
1
answer
7k
views
Creating an object-oriented router class in PHP
On my way to learn OOP, I am developing a little CMS using the MVC pattern. I would like to have some feedback about my router class, mostly about if I am correctly using OOP.
Right now, I have a ....
5
votes
1
answer
649
views
Small PHP-MVC system (for personal learning / use)
I've made an "simple" / "small" MVC-like PHP system. I've used some code of an project I used before and ask questions about it back then to.
The thing is, it works (the admin part to begin with), ...
0
votes
1
answer
145
views
URL router that loads dependent objects
How can I write my code more efficient (not repeating same code)?
And is there a solution that simplifies the way of having to create a lot of dependency objects over and over again whenever I ...
2
votes
1
answer
291
views
Micro MVC framework
I'm building my own micro MVC framework with only the absolute core functionality. My router will call the controller depending on the request method (GET or POST), and if the called action isn't ...
3
votes
1
answer
429
views
Routing the CMS way
I always been curious on how to build great application with proper routing to my controllers, but after seeing some sources of applications like Xenforo, Joomla, it seems completely different, and ...
3
votes
1
answer
798
views
Router for MVC framework
The class routes URLs based on the domain.com/class/method/param/.. format. It also checks the request type (GET or POST) and calls the method name GET or POST from ...
1
vote
2
answers
770
views
MVC application class
Please could you review and critic my code and logic? Is this is along the right lines of an MVC application class or not?
...
2
votes
1
answer
1k
views
Good, flexible and secure MVC router PHP
I have developed a new router after having learnt a lot from my previous attempts and I will be using this in sites I make from now on.
In a previous question, the issue of ...
4
votes
2
answers
4k
views
Object Oriented PHP Url Router
I just finished rewriting my Router class. Any input would be much appreciated.
The class routes URLs based on a site.com/class/method/param/param/etc syntax.
One ...