O'Reilly logo

Learning Phalcon PHP by Calin Rada

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. Setting Up the MVC Structure and the Environment for Our Project

In the previous chapter, we summarized the most common parts of Phalcon. Next, we will try to set up the "Hello world" page for our project. In this chapter, we will cover these topics:

  • An introduction to MVC—what is MVC?
  • The MVC structure
  • Creating a configuration file and the Bootstrap
  • Preparing the initial DI interface and the router
  • Using the router component in a module
  • Creating the base layout

What is MVC?

I am pretty sure that if you are reading this book, you are already familiar with the MVC pattern, but for beginners, we will try to explain this in a few words.

MVC is defined as an architectural pattern, and it stands for Model-View-Controller; it is used mostly in ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required