In this blog post we'll create a simple PHP MVC Framework from scratch. This simple framework can be used as a tool for learning the basic plot behing MVC or you can modify it and make it grow into something bigger and much more useful.
MVC stands for "Model View Controller". MVC is a concept that enables us to separate our business logic from the presentation. One of the biggest advantages is the code reusability. There are other benefits, such as: We can let the designers edit the Views, without worrying that they will screw up database access logic.
We'll make a simple "City guide to Zagreb", meaning we'll select interesting locations from the database, display them on a map, show some info about them and show directions from user's current position to a location of his/her choice.
What you'll need
- PHP/MySQL Development Environment
- Some free time
As you can see it's really easy to get started. So, let's do it!
In this blog post we'll create a simple registration using Facebook registration plugin. We'll also create a simple login system that enables registered users to login to our site.
About Facebook Registration plugin
Facebook registration plugin enables users to register for a website regardless if they have Facebook account or not. However, if they have a Facebook account the registration form will be automatically filled with the user information from their Facebook account.
We'll create a Simple Blog Site from scratch using the eZ Publish CMS.
If you didn't come across eZ Publish yet it would be useful to familiarize yourself with both installation of eZ Publish and with first steps after an installation (post includes basics of creating a extension).
In this post I'll start with a "Plain Site" eZ Publish installation, because it's easier to explain some concepts that way, but if you already have another installation it really doesn't matter because we'll make our own design, templates and classes.
This article is second in a series about eZ Publish CMS. It continues our exploration where the article about installation left off. It will deal with the first steps after eZ Publish installation.
We'll customize our site a bit and alter it's appearance. To do that we'll first do some basic eZ Publish configuration and then we'll create a new eZ Publish extension.