Setting up Phalcon PHP framework for the first time and Impressions

preview_player
Показать описание
I have been really excited about Phalcon PHP but as of yet have not had the opportunity to work with it. Well tonight I am going to setup a sample project and feel out how hard it was to do the initial compilation.

My impression of this framework is A+ so far!

Рекомендации по теме
Комментарии
Автор

Pretty much everything you are questioning can be done :) A couple of pointers:

1. By default the internal router searches: :controller/:action/:params. This is why you don't see any routes defined in that example. The router can be as elaborate as you want it to be (see docs)
2. The DI container is instantiated using FactoryDefault. This automatically registers services for you, and yes the response is one of them so you don't need to instantiate a new response in your controller.
3. For views you can also use Volt which you will really like.

Feel free to visit the discord server or forums for your questions. For authentication you can also have a look at Vokuro. Also the Forum uses Github authentication. Both are in the phalcon github organization

ndimopoulos
Автор

I felt soo many pains watching this :< mildly infuriated

tagKnife