Table of Contents
ToggleThe Fuel PHP Framework is a very fast, simple and PHP 5.4+ framework.
Fuel Php Website : https://fuelphp.com/
What is FuelPHP?
FuelPHP is free open source web framework written in PHP scripting language.FuelPHP is based on HMVC ( Hierarchical Model View Controller) design pattern.
FuelPHP also supports a more router based approach where you might route directly to a closure which deals with the input uri, making the closure the controller and giving it control of further execution.
What is a Presenter in FuelPHP?
Presenter: A Presenter is a class that contains the logic that is needed to generate your view (or views). When the controller is done with your user input and is done with whatever actions it needed to take, it turns execution over to the Presenter to retrieve and process whatever data is needed for the view. A Presenter shouldn’t do any data manipulation but can contain database calls and any other retrieval or preparation operations needed to generate the View’s data.
List some features of FuelPHP.
FuelPHP Features List
- An (H)MVC framework
- Modular and extendable
- Inbuilt Security modules.
- Oil: the power of the command line interface
- Base classes for Controllers and Models
- Powerful yet lightweight ORM
- Inbuilt Authentication
- Multiple template parser for your Views
How to get Query in FulePHP?
- Modularization
- Organization
- Reusability
- Extensibility
What are the minimum requirements for installing FuelPHPFramework?
There are the following minimum requirements for installing FuelPHPFuelPHP Framework:
- PHP Version >= 5.3.3
- Mbstringphp extension installed and enabled
- Mcryptphp extension installed and enabled
- Fileinfophp extension installed and enabled
- PHPUnit version 3.7 or greater is required if we want to run unit tests.
What are the features of FuelPHPFramework?
FuelPHPFramework features are:
- URL routing system
- Restful implementation
- HMVC implementation
- Form Data validation
- ORM (Object Relational Mapper)
- Vulnerability protections like XSS, CSRF, SQL Protection and encode output.
- Caching System
What is Presenter and how to create Presenter in FuelPHP Framework?
A Presenter is a class that contains the logic. It is needed to generate our view. A Presenter should not do any data manipulation but it can contain database calls or any other retrieval.
To create empty Presenters:
classPresenter_Index extends Presenter
{
— Body —
}
List out template engines supported by FuelPHP.
FuelPHP supports drivers for following template Engines.You are free to use any one of below for development.
- Mustache
- Markdown
- Smarty
- Twig
- Haml
- Jade
- Dwoo
- Phptal
What is the minimum requirement for installing FuelPHP?
In order to install FuelPHP 1.8, your server must meet below requirements
- PHP Version >= 5.3.3
- Mbstring PHP extension installed and enabled
- Mcrypt PHP extension installed and enabled
- Fileinfo PHP extension installed and enabled
- PHPUnit version 3.7 or greater is required if you want to run unit tests.
What is the current Stable version of FuelPHP?
As on August 2017 Version: 1.8 is the current stable version of FuelPHP.
What are inbuilt security features comes with FuelPHP
Fuel takes security very seriously, and as a result, has implemented the following measures to ensure the safety of your web applications:
- Output encoding
- CSRF protection
- XSS filtering
- Input filtering
- SQL injection
List Reserved Routes in FuelPHP
In Fuel, there are 4 reserved routes. They are root, 403, 404 and 500.
- root – The default route when no URI is specified.
- 403 – The route used when the application throws an HttpNoAccessException that isn’t caught.
- 404 – The route used when the application throws an HttpNotFoundException that isn’t caught.
- 500 – The route used when the application throws an HttpServerErrorException that isn’t caught.
Related Topic :
What is LibreOffice? LibreOffice Impress Features ?