×

Top 30 FuelPHP Framework Interview Questions for 2024

1) What is FuelPHPFramework?

FuelPHP Framework is an open source web application and written in PHP scripting language. It is based on the HMVC (Hierarchical Model View Controller) design pattern. It was released on January 1, 2014 by GitHub repository named FuelPHP.

2) What is the current Stable version of FuelPHPFramework?

FuelPHP current Stable version is1.8and released on 9 April 2016.

3) What are the supported template engines inFuelPHPFramework?

There are following template engines in FuelPHPFramework:
  • Mustache
  • Markdown
  • Smarty
  • Twig
  • Haml
  • Jade
  • Dwoo
  • Phptal

4) What are the features of FuelPHPFramework?

FuelPHPFramework features are:
  1. URL routing system
  2. Restful implementation
  3. HMVC implementation
  4. Form Data validation
  5. ORM (Object Relational Mapper)
  6. Vulnerability protections like XSS, CSRF, SQL Protection and encode output.
  7. Caching System

5) 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.

6) What are the benefits of HMVC in FuelPHPFramework?

In FuelPHPFramework, HMVC benefitsare:
  • Modularization
  • Organization
  • Reusability
  • Extendibility

7) What are the inbuilt security features of FuelPHP Framework?

FuelPHPFrameworkprovides inbuilt security features that are:
  • Output encoding
  • CSRF protection
  • XSS filtering
  • Input filtering
  • SQL injection

8) How can we quick installFuelPHP Framework?

We can quick install FuelPHP Framework by using some command: Quick installation using Oil from the web.
$ curl https://get.fuelphp.com/oil | sh
Now that oil is installed, create a blog project in a directory called Sites.
$ cd Sites/  

$ oil create blog

9) What is the controller in FuelPhp framework?

Controller is a class that contains action methods. It is used to manage HTTP client request and respond back. All controllers are stored in the fuel/app/classes/controller/ directory. Example:
classController_Employee extends Controller {   

public function action_home() {   

echo "FuelPHP-Employee application!";   

}    

  

public function action_index() {   

echo "This is the index method of employee controller";   

}   

}   

There are two methods in the controller.

before() action method

after() action method.

10) What are the types of Reserved Routes in FuelPHP Framework?

In FuelPHP, there are various types of Reserved Routes:
  • root_: The default route when no URI is specified.
  • _403_: It throws an HttpNoAccessException that isn't caught.
  • _404_: It throws an HttpNotFoundException that isn't caught.
  • _500_: It throws an HttpServerErrorException that isn't caught.

11) What is the use of Oil Package in FuelPHPFramework?

In FuelPHP, Oil package is used for installation, development and testing of application.

12) 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 --  

}

13) How can we get query in FuelPHP Framework?

In FuelPHP, we can get query by using following steps:
$userQueryToExecute = Model_Article::query()  

->select('users')          

->where('blocked', '=', 1);  

echo $userQueryToExecute->get_query();

14) How can we check Redis server is running or not?

We can check Redis server is running or not by using following source code.
Try  

{  

$redis = \Redis::instance();      

}  

catch(\RedisException $e)  

{  

//here error will come  

}

15) What are the Event methods in FuelPHP Framework?

InFuelPHP Framework, events methods are used to application events. Some methods are given below. register(): It allows files to register an object that will be run when the trigger method is called. Example
$my_event_code = function() {   

echo 'my event';   

}   

Event::register('my_event', $my_event_code);
unregister(): It allows the files to unregister an object that would be run when the trigger method is called. Example
Event::unregister('my_event', $my_event_code);
trigger(): It is used to trigger or activate callbacks that are associated through the register method. Example
has_events(): It is used to check if a particular registered event has triggers. Example
Event::has_events('my_event');

16) What is Oil?

Oil is a FuelPHP tool that used Command line installation method.

17) Who is the developer of FuelPHP?

Harro Verton, Jelmer Schreuder, and Dan Horrigan are the developer of Fuel PHP.

18) What is Scaffolding in FuelPHP?

In FuelPHP, Scaffolding is a meta-programming method for building database operations.

19) What are the web servers of FuelPHP?

There are following web servers of FuelPHP:
  • WAMP (Windows)
  • Microsoft IIS (Windows)
  • LAMP (Linux)
  • MAMP (Macintosh)
  • XAMP (Multi-platform)
  • Nginx (Multi-platform)
  • PHP in-built development web server (Multi-platform)

20) What are controllers?

Controllers are responsible for handing each request. It is located at fuel/app/classes/controller/ files.

21) What is the two important method of controller

Two important method of controller is: before() and after()

22) How to create a validation objects?

Forge() method is used to create a validation objects. Example:
$val = Validation::forge();

23) What are the upload classes in FuelPHP?

There are following upload class in FuelPHP.
Upload class Description
Max_size It is used to set maximum size of the file to be uploaded.
ext_whitelist It is used to allow file extensions.
ext_blacklist It is used to disallow file extensions.
type_blacklist It is used to set disallowed file types.
mime_blacklist It is used to set disallowed mime file types.

24) How to handle an Ajax request properly on the server?

The following code is used to handle an Ajax request properly on the server.
if (Input::is_ajax()) {    

   // Ajax request    

} else {    

   // Normal request    

}

25) What are the types of controllers in FuelPHP?

In FuelPHP, There are four types of controller:
  • Base controller
  • Template controller
  • Rest controller
  • Hybrid controller

26) What is Query Builder API?

Query builder classes provide options to build SQL queries dynamically. Example:
$query = DB::select('name')  // select `name`   

$query = DB::select(array('first_name', 'name')) // select 'first_name' as 'name'

27) Does FuelPHP support multiple themes?

Yes, FuelPHP support multiple themes.

28) What are the Session methods in FuelPHP?

In FuelPHP Session methods are given below table:
Session Methods Description
set() It is used to assign a session variable.
get() It is used to assign a session variable.
delete() It is used to retrieve the stored variable from the sessions.
create() It is used to create a new session.
destroy() It is used to destroy an existing session.

29) What are the predefine events in FuelPHP?

In FuelPHP, there are various predefine events:
  • app_created
  • request_created
  • request_started
  • controller_started
  • controller_finished
  • response_created
  • request_finished
  • shutdown

30) Is FuelPHP support Multilingual?

Yes, FuelPHP supports Multilingual.

Related Topics

Top 30 Web Service Interview Questions for 2024

1) What is a Web Service? Web service is a client server application or component. It is used for communication. It is way to communicate between two devices over network. In another word...

5 minutes read.

Top 14 Material Design Lite Interview Questions for 2024

1) What is Material Design Lite? Material Design Lite is UI component Library. It is created with CSS, JavaScript and HTML. It is used for design purpose. It is developed by...

3 minutes read.

Top 30 Ruby on Rails Interview Questions for 2024

1) What is Ruby on Rails? It is a server-side web application framework. It is an open source ruby framework which is used for developing database-backed web applications. Here, no compilation phase is...

4 minutes read.

Top 30 AngularJS Interview Questions and Answers for 2024

Most Frequently asked AngularJS Interview Questions and Answers for Fresher 1) Describe Angular JS ? It is a powerful framework of JavaScript. AngularJS is used to design Rich Internet Application. This framework...

5 minutes read.

Top 25 Oracle DBA Interview Question for 2024

1) What is an Oracle Instance? Database instance is a set of memory structures that manages database file. When an instance is started Oracle database allocate memory area called SGA (System...

4 minutes read.

Top 14 Web icon Interview Questions for 2024

1) What is Web Icon? Web Icon is a symbol that is used to represent a specific action or a capability on a webpage. It is used in documents as well...

5 minutes read.

Top 15 AWS Interview Questions for 2024

1) What is AWS? AWS stands for Amazon Web Services. It is a cloud web hosting platform that offers flexible, scalable, reliable, easy-to-use, and cost-effective solutions. 2) What is Cloud Computing? It is...

2 minutes read.

Top 10 Java Swing Interview Questions for 2024

1) What is Java Swing? It is a part of JFC (Java Foundation Classess) that is used to create window-based applications. Java Swing components are platform independent and lightweight . 2) What is...

3 minutes read.

Top 15 Java BeanUtils Interview Questions for 2024

1) What is Java BeanUtils? Java BeanUtils is a design pattern component of the Apache Commons. It facilitates architecture for Java language which is derived from JavaAPI. It helps to set...

3 minutes read.

A to Z Interview Questions

ABCDEFGHIJKLMNOPQRSTUVWXYZ Interview Questions and Answers List A AJAX Interview Questions Android Interview Questions Angular 2 Interview Questions AngularJs Interview Questions Apache Presto Interview Questions Apache Tapestry Interview Questions Arduino Interview Questions ASP.NET MVC Interview Questions Aurelia Interview Questions AWS Interview Questions B Blockchain Interview...

3 minutes read.

Top 14 XSL Interview Questions for 2024

1) What is XSL? XSL stands for Extensible Stylesheet Language. It is used for expressing stylesheets like CSS which describes how to display an XML of given type. 2) What is XSLT? XSLT...

4 minutes read.

Top 30 VB Script Interview Questions for 2024

1) What is VB Script? VBScript stands for Visual Basic Scripting Language. It is a light version of Microsoft Visual Basic. It is a client side scripting Language. 2) What is the...

5 minutes read.

Ember.js Interview questions

1) What is Ember.js? Ember.js is a JavaScript front-end Framework. It provides developer both features for managing complexity in modern web-apps as well as integrated development kit. 2) Why choose Ember.js? Logical...

2 minutes read.

Artificial Neural Network Interview Questions

1. Explain Neural Network?  Neural Network is a sequence of an algorithm that gives its best to recognize the underlying relationship in a data-set through a process. The artificial neural network...

8 minutes read.

Top 15 SQL Server Interview Question for 2024

1) Describe SQL Server? SQL server is a DataBase Management System developed by Microsoft. It was first introduced in year 2008 since, then many version has been introduced such as :...

2 minutes read.

Top 16 OpenStack Interview Questions for 2024

Most Frequently Asked OpenStack Interview Questions and Answers for Freshers 1. Describe OpenStack. OpenStack is designed as the future of cloud computing and developed as free and open-source software that facilitates a...

8 minutes read.

Top 31 Dart Programming Interview Questions for 2024

1) What is Dart? Dart is an application programming language. It is used to build web, server and mobile applications. 2) Who is the developer of Dart? Google is the developer of Dart. 3)...

6 minutes read.

Top 25 CoffeeScript Interview Questions for 2024

1) What is CoffeeScript? It is a language that compiles into JavaScript. CoffeeScript is an attempt to expose good parts of JavaScript so, that user can code more easily. 2) Name the...

3 minutes read.

Top 20 C Programming | Coding Interview Questions for 2024

Most Frequently asked C programming | Coding Interview Questions and answer for Fresher C is a powerful high-level programming language.  It is a fast, portable and available for all platforms. C...

15 minutes read.

Bugzilla interview Questions

Frequently asked questions about Bugzilla Q1. What are reports in Bugzilla? A1. Reports can be defined as an interface between the user and the database of Bugzilla. It helps to examine and...

4 minutes read.