Tagged Questions
10
votes
3answers
257 views
Listener/Observer Model in PHP
I've taken a look at the SPL Listener/Observer model but found that it doesn't work when using static methods. So I wrote my own but it's very simply. Can anyone suggest ways to make it more like the ...
1
vote
0answers
43 views
Modular dynamic based routing with wildcards
I've created this router for my framework and wanted to get some feedback on if it's the most efficient way to search the routes.
The main router
...
2
votes
1answer
52 views
How to optimize the code in order to reduce the loading time of page?
I'm using PHP, MySQL, Smarty, jQuery, etc. for my website. I'm using a MVC architecture to develop the website. Now in one of the functionality I'm fetching a large amount of data and perform some ...
2
votes
1answer
198 views
How to put XML results in the MVC pattern?
I have been writing PHP programs in the MVC pattern for quite some time. But I am not sure if I am doing it right.
For instance, I have this PHP file that prints a result in XML, and I put this file ...
4
votes
2answers
329 views
PHP MVC controller code needs diet?
This is the dashboard controller code in PHP Symfony 2. It collects some aggregate data and points for charts, but i don't like it very much. Do you think that this code belongs to what a controller ...