Interview Questions

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 Blockchain Interview Questions Bootstrap Interview Questions C Interview Questions C Programming Coding Interview Questions C# Interview Questions C++ Interview Questions Cakephp Interview Questions Cassandra Interview Questions CherryPy Interview Questions Clojure Interview Questions Cobol Interview Questions CodeIgniter interview Questions CoffeeScript Interview Questions Cordova Interview Questions CouchDB interview questions CSS Buttons Interview Questions CSS Interview Questions D Programming Language Interview Questions Dart Programming Language Interview Questions Data structure & Algorithm Interview Questions DB2 Interview Questions DBMS Interview Questions Django Interview Questions Docker Interview Questions DOJO Interview Questions Drupal Interview Questions Electron Interview Questions Elixir Interview Questions Erlang Interview Questions ES6 Interview Questions and Answers Euphoria Interview Questions ExpressJS Interview Questions Ext Js Interview Questions F# Interview Questions Firebase Interview Questions Flask Interview Questions Flex Interview Questions Fortran Interview Questions Foundation Interview Questions Framework7 Interview Questions FuelPHP Framework Interview Questions Go Programming Language Interview Questions Google Maps Interview Questions Groovy interview Questions GWT Interview Questions Hadoop Interview Questions Haskell Interview Questions Highcharts Interview Questions HTML Interview Questions HTTP Interview Questions Ionic Interview Questions iOS Interview Questions IoT Interview Questions Java BeanUtils Interview Questions Java Collections Interview Questions Java Interview Questions Java JDBC Interview Questions Java Multithreading Interview Questions Java OOPS Interview Questions Java Programming Coding Interview Questions Java Swing Interview Questions JavaFX Interview Questions JavaScript Interview Questions JCL (Job Control Language) Interview Questions Joomla Interview Questions jQuery Interview Questions js Interview Questions JSF Interview Questions JSP Interview Questions KnockoutJS Interview Questions Koa Interview Questions Laravel Interview Questions Less Interview Questions LISP Interview Questions Magento Interview Questions MariaDB Interview Questions Material Design Lite Interview Questions Materialize CSS Framework Interview Questions MathML Interview Questions MATLAB Interview Questions Meteor Interview Questions MongoDB interview Questions Moo Tools Interview Questions MySQL Interview Questions NodeJS Interview Questions OpenStack Interview Questions Oracle DBA Interview Questions Pascal Interview Questions Perl interview questions Phalcon Framework Interview Questions PhantomJS Interview Questions PhoneGap Interview Questions Php Interview Questions PL/SQL Interview Questions PostgreSQL Interview Questions PouchDB Interview Questions Prototype Interview Questions Pure CSS Interview Questions Python Interview Questions R programming Language Interview Questions React Native Interview Questions ReactJS Interview Questions RequireJs Interview Questions RESTful Web Services Interview Questions RPA Interview Questions Ruby Interview Questions Ruby on Rails Interview Questions SAS Interview Questions SASS Interview Questions Scala Interview Questions Sencha Touch Interview Questions SEO Interview Questions Servlet Interview Questions SQL Interview Questions SQL Server Interview Questions SQLite Interview Questions Struts Interview Questions SVG Interview Questions Swift Interview Questions Symfony PHP Framework Interview Questions T-SQL(Transact-SQL) Interview Questions TurboGears Framework Interview Questions TypeScript Interview Questions UiPath Interview Questions VB Script Interview Questions VBA Interview Questions WCF Interview Questions Web icon Interview Questions Web Service Interview Questions Web2py Framework Interview Questions WebGL Interview Questions Website Development Interview Questions WordPress Interview Questions Xamarin Interview Questions XHTML Interview Questions XML Interview Questions XSL Interview Questions Yii PHP Framework Interview Questions Zend Framework Interview Questions

Top 30 FuelPHP Framework Interview Questions for 2022

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.



ADVERTISEMENT
ADVERTISEMENT