|All requests||>||Develop PHP mvc Framework From Scratch||>||Request new recommendation||>||Featured requests||>||No recommendations|
by ehos olivia - 3 years ago (2017-08-17)
Problem: I want to develop PHP MVC framework of my own, but don't know how to go about it. I want a PHP framework built from scratch WITHOUT the use of popular frameworks like Yii, Symfony,Laravel etc Also, a small mini-project on implementing the PHP MVC framework would deeply and deeply be appreciated.
Requirements: Make use of PDO for Mysql URL Redirecting working well Controller, Model, View(templates) AJAX, JQUERY request and send function etc
Please I will be glad if you could help, Please!
1. by Dave Smith - 2 years ago (2017-10-14) Reply
I am not sure how far you have gotten on this, however you have posted your request in the wrong place really. On this site there are forums, and one is available to ask an expert. You request should really be made there.
I am not 100% sure that the 2 current recommendations understood that you are wanting to build your own Model View Controller (MVC) pattern into your own framework.
This is a fairly advanced subject and to detailed for a full explanation here, but the basics are...
You have a model class that manages the what, the raw data. This class is instantiated into its own object.
You have a controller class that instructs the model, the how. This class is instantiated into an object with one of its properties being the model object.
You have a view class that determines where, in what format the raw data is delivered. It is instantiated as an object with the model and controller objects as properties.
Creating the objects this way allows the controller to control the model and the model to make the data available to the view which delivers it.
When dealing with the web, one additional bit of functionality is often needed which is called the router. Based on the user request, the router decides what controller, model and view are needed and instantiates them accordingly.
That should be enough information to get you moving in the right direction.
2. by ehos olivia - 2 years ago (2018-06-18) in reply to comment 1 by Dave Smith Comment
Thanks Dave Smith. After much troubles and research, i managed to get one working. Your clarification is really helpful. Thanks.
I am using the link above to 'validate'
I developed a simple CMS a few years ago, it wasnt complex or expanadble, but I wrote it in a way that if you wanted to you could, I still have many notes on this and they still fit todays technologies, however it would mean updating some of the code, are you looking for people to HELP you build the CMS or are you looking for 3rd party libraries to build the CMS? either way I can help by providing notes on what I did and why, hoipefully this will give you a firm basis to progress further. you can get in touch via twitter using jimmyboro, I can then send you contact details.
All the best and good luck with your project
1. by ehos olivia - 3 years ago (2017-08-22) Reply
Hi James! I want to build myself. I have been trying but i don't know, it's still crazy.
Can i see the link, please? Also the notes and other stuff would do.
5. by ehos olivia - 3 years ago (2017-08-22) Reply
Hi james crawford, i check you on twitter with jimmyboro but could found you. Hope to hear from you soon.
A content management framework based on CodeIgniter
3. by ehos olivia - 3 years ago (2017-08-22) in reply to comment 2 by Burge Lab Reply
Can i see the link,please?
4. by ehos olivia - 3 years ago (2017-08-22) in reply to comment 2 by Burge Lab Reply
I mean can i have the link to the files?