This video series will teach you how to create a Model-View-Controller framework with PHP. (https://github.com/BaylorRae/PHP-MVC-Tutorial)
In this video I show you how to allow the framework to automatically load the controller and action based on the url.
you need to also create a render function that allows you to render partials.
RAGSTERGURR2122 1 month ago
@ClansmanAliasTool It'll eventually become more OOP when I introduce helpers, components and libraries. I may go back and use a "Sammy" approach to keeping classes in one instance.
The main reason I group my methods into static classes is to lower the amount of global functions. I figured others would use this framework and incorporate some of their own code or implement 3rd party libraries, so I wanted to help prevent my code from being a hindrance.
BaylorRae 10 months ago
Im concerned that you practically always use static classes instead of their instances - that way you only group functions into logical container - thats not exactly OOP
ClansmanAliasTool 10 months ago
Great series of php tuts, But I wish you created the sammy file yourself, I dont understand exactly whats going on, but great tuts anyways
TheEBookZone 10 months ago