Loading…
FuelPHP Interview Questions

An Overview of FuelPHP

FuelPHP is an open source web app framework written in PHP 5.3. If you are looking for the best FuelPHP interview questions, then this is the best platform to read. It executes HMVC pattern allowing giving a sub-requesting the controller returning the available partial pages such as menus, comments and many more rather than the completing page as in the normal MVC. There are several packages such as fuel/packages containing other packages such as auth package, an email package, oil package, parser package.

Development History

FuelPHP was mainly developed by Dan Horrigan, Jelmer Schreuder, Harro Verton, Frank de Jonge. These were the main contributors to the development of the FuelPHP project which began in the year 2010.

FuelPHP interview questions have increased in number in the technical interview rounds; if you too any interview line up, then below-written question and answers will help you clear your interviews with ease.

Advantages

  • Contains modular structure making the integration process easy
  • Ease of access given by HMVC patterns such as class methods, properties, files at higher level and functions
  • Building database operations with scaffolding functionality
  • Handling of hashing, decryption, and encryption with the help of PHPSecLib
Last update: 17 Apr 2019, 16 Questions and Answers

FuelPHP Interview Questions and answers

Looking for a new job? Do not miss to read our FuelPHP Interview Questions and answers. Whether you are a fresher or an experienced, these questions and answers that can help you to crack your interview.

It is a web application framework and is an open source platform which works to execute HMVC pattern. The long list of the features of the technology is the answer to the above question.

The main traits which make FuelPHP framework user-friendly are-

  • Easy configuration
  • Enhanced usability
  • Provides authorized and authenticated framework
  • Increased portability
  • Ease of use in the server
  • Prevents SQL inject
0 0

In the year 2018, the updated version of FuelPHP, 1.8.1 was released. It contains improved functionalities, fixes the bugs, and several usual improvements.

0 0
  • Sparse documentation along with incomplete sections.
  • Somewhat complex structure to understand especially by PHP or Codeigniter developers at the beginners to intermediate level.
  • Small community and less number of applications built
  • Hard to learn the conventions of the naming space
0 0
  • Mustache
  • Jade
  • Dwoo
  • Phptal
  • Markdown
  • Smarty
  • Twig
  • Haml

Interesting, right? Read on to know more FuelPHP Interview Questions.

0 0

It is a Hierarchical Model-View-Controller framework used in FuelPHP providing the permission of requesting the internal controllers from the applications. It is a direct extension to the MVC pattern which helps in managing all the pre-defined scalability issues.

0 0
  • The minimum PHP version is 5.3.3
  • installed and enabled Mbstringphp extension
  • Fileinfophp extension installed and enabled
  • PHPUnit version >=3.7 as per the requirement of running the unit tests.
  • Installed and enabled Mcryptphp extension.
0 0
  • Encoding of the output
  • Input filtering
  • XSS filtering
  • Filtering of URLs
  • Prevention of SQL injection
  • CSRF token protection
0 0
There are four reserved routes-
  • _403_-This route is followed at the time of uncaught HttpNoAccessException.
  • _root_-It is the default route to be followed due to the unspecified URI.
  • _404_-At the time of HttpNotFoundException, this route is followed.
  • _500_- Uncaught HttpServerErrorException leads to following this route.
0 0

A class containing logic is called as a presenter. It is useful for generating our view. A presenter can consist of database calls or the related retrievals but not perform any data manipulations.

Example

                                                    

Creating Presenter is FuelPHP-

classPresenter_Index extends Presenter
{
     // Body
}

0 0

DB::select('name')->from('admin')->execute();

0 0

The term Scaffolding is a meta-data programming method needed for building database operations. The scaffolding of the concept FuelPHP which makes the work easy and helpful in allowing to get a basic CRUD application that too following simple and easy steps. It is one of the common FuelPHP Interview Questions.

0 0

1. Create an object.

2. Instantiate it, $val = Validation::forge('my_validation');

3. Start adding fields to it, $val = Validation::forge('my_validation');

4. Add username to it, $val->add('username', 'Your username')->add_rule;

5. Add column for password, $val->add('password', 'Your password')

     ->add_rule('required')

     ->add_rule('min_length', 3)

     ->add_rule('max_length', 10);

(The digits are as per the requirements)

6. Add the next field, the gender field- $val->add('gender', 'Your gender')-

     >add_rule('required')

    ->add_rule('match_collection', array('M', 'F'));

If any other validations are to be given, then give them using add_rule() method.

   Or

Forge ( ) method is used for creating a validating objects, such as $val= Validation:: forge( );

0 0

Checking an Ajax request on the server is a task which can be done with the help of input class method. If there has been an Ajax request on the server, then the function, Input::is_ajax will return true, and in the otherwise case, it will return false.

Example

                                                    

if (Input::is_ajax()) {
    // Ajax request
} else {
    // Normal request
}

0 0
  • Base controller
  • Rest controller
  • Hybrid controller
  • Template controller
0 0
  • Create ()- Used for creating a new session.
  • Set ()- Used for assigning a session variable.
  • Destroy ()- Destroying the existing session is the main task of this method.
  • Get ()- it gets the sessions variable.
  • Delete ()- It deletes the stored variable which has been retrieved from the sessions.
0 0
Ask Question