Learn PhalconPHP Framework
- 6 hours on-demand video
- 16 downloadable resources
- Full lifetime access
- Access on mobile and TV
- Certificate of Completion
Get your team access to Udemy's top 3,000+ courses anytime, anywhere.Try Udemy for Business
- Learn how to start a PhalconPHP application from scratch
Learn the inner workings of Controllers and Views
Learn how to manage your Database with Models & the ORM
- Learn how to use the Dependency Injection Service
- Learn how to use the VOLT Template Library
- Create a PhalconPHP Project
PhalconPHP is the fastest full-scale framework written in C for the Zend Engine.
This demonstrates how to properly install Phalcon. It's similar to almost any MVC besides the extension adding. I'll show you how to create a Virtual Host to protect non-public files.
We will create a directory structure like the Phalcon Documents use to stay consistent with them. Yet the option is still up to you to lay it out anyway you choose.
I will also be using GIT for managing this project and I encourage you to if you know how to use it. The purpose of me bringing it up is so that you are not confused about any .git folders and files.
The Bootstrap is the entry point for the application. This is where you define autoloading, view folders, and return data from the application.
The DependencyInjector is like a global registry using closures, it will become very useful in the future.
Although a CLI application can generate this for us, it's important you understand what's going on.
Learn a few core items that are important for the Controller.
- With the Dispatcher ($this->dispatch->forward) you can call another URL action (as if it were a function).
- With the initialize() function, you can use it for protecting your Routes.
- initialize() is only called When a route is successfully loaded (beforeExecuteRoute)
Learn how to render your views from controllers, and how to take advantage of layouts.
Important: If create /layout/login.phtml Phalcon will autoload for the login controller, so you do not need to call setTemplateAfter('login') or it will load twice.
View Render Levels
Follow along to create our database schema if you like. I will be using HeidiSQL (free), you may use your favorite SQL client.
Here is how you install APC for usage on Windows inside of WAMP or XAMPP.
MediaFire Link: For 64-Bit PHP (php_apc-3.1.13-5.4-VC9-x64.zip)
PHP.net Link: For 32-Bit PHP (php_apc-3.1.10-5.4-vc9-x86.zip)
Note: PHP Suggests using code compiled with VC9 over VC6 for increased performance.
We will use the Assets manager briefly for loading Js or CSS into our views. Ill also show you the collections, and there are further options for minification you can find in the documents.
We'll also create a BaseController to make our project easier to manage with shared functionality when need-be.
The Volt Templating engine is extremely easy to use. I'll show you some basics as we rewrite our user view into Volt.
We begin our application titled "Fireball". We will do a major facelift and clean up a lot of the learning code, and setup a base template system while integrating Bootstrap 3. You may skip this video if you like and just download the code and continue, however, I recommend watching at the very least so you pickup some tricks.
A handy class to pass configurations around your system.
- Linux or Windows using LAMP / WAMP / XXAMP (Sorry, No Mac Support)
- Some CLI/Terminal Knowledge
- Text Editor (Recommended: Sublime Text)
In this course I will teach you from the ground floor how to build an application in PHP's fastest full-scale framework; PhalconPHP. Controllers, Views, Routes, Templates, Models/Relationships/ORM; All covered.
Each section is broken down for you to follow along with and write code as I do. After learning as you go, we'll create a project based on what you've learned.
We will make changes to the Bootstrap through each step in this follow-along series so you know exactly what's going on. This course is geared towards the medium to advanced skilled developer who have a well rounded knowledge of PHP and Object Oriented Design.
This course should take you around 2-3 weeks to complete, but you may need to come back a few times in order to absorb all the material. You should consider taking this course if you are interested in advanced development and bleeding-edge technology that will dominate PHP.
- Proficient PHP Knowledge
- Some MVC Knowledge