Explore topic-wise InterviewSolutions in Current Affairs.

This section includes 7 InterviewSolutions, each offering curated multiple-choice questions to sharpen your Current Affairs knowledge and support exam preparation. Choose a topic below to get started.

1.

How To Use Join With Condition?

Answer»

$queryObj = Services Model_Org::QUERY()

->RELATED('org')

->related('profile_image')->related( ARRAY( 'comments' => array( 'where' => array( array('visible' , '=' , '0') )

) ))

->where ('rating','!=', 'null')

->order_by ('rating','desc')

->get ();

$queryObj = Services Model_Org::query()

->related('org')

->related('profile_image')->related( array( 'comments' => array( 'where' => array( array('visible' , '=' , '0') )

) ))

->where ('rating','!=', 'null')

->order_by ('rating','desc')

->get ();

2.

How To Check That Redis Server Is Running?

Answer»

TRY

{

$REDIS = Redis::instance();

}

Catch (RedisException $E)

{

//here error will COME

}

Try

{

$redis = Redis::instance();

}

Catch (RedisException $e)

{

//here error will come

}

3.

How To Get Query In Fuelphp?

Answer»

$user Query To Execute = Model Article::query ()

->select ('users')

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

ECHO $user QueryTo Execute->GET query ();

$user Query To Execute = Model Article::query ()

->select ('users')

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

Echo $user QueryTo Execute->get query ();

4.

What Are Benefits Of Hmvc?

Answer»
  1. MODULARIZATION
  2. ORGANIZATION
  3. REUSABILITY
  4. EXTENSIBILITY

5.

What Is Hmvc?

Answer»

HMVC is an EVOLUTION of the MVC PATTERN.

HMVC is an evolution of the MVC pattern.

6.

What Is Full Form Of Hmvc?

Answer»

Hierarchical-Model-View-Controller

Hierarchical-Model-View-Controller

7.

What Are Key Features Of Fuelphp?

Answer»
  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, and SQL Protection and encode OUTPUT.
  7. Caching System

8.

What Is Official Website Of Fulephp?

Answer»

fuelphp.com

fuelphp.com

9.

Is Fuelphp Support Multilingual?

Answer»

YES, it SUPPORTS MULTILINGUAL.

Yes, it supports Multilingual.

10.

What Is Minimum Php Version Required For Fuelphp?

Answer»

PHP 5.4+

PHP 5.4+

11.

What Is Current Stable Version Of Fuelphp?

Answer»

VERSION: 1.8, DATED: APRIL 9, 2016.

Version: 1.8, Dated: April 9, 2016.

12.

Is Fuelphp Open Source?

Answer»

YES, it is OPEN SOURCE.

Yes, it is Open Source.

13.

What Are Inbuilt Security Features Comes With Fuelphp?

Answer»

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

Fuel takes security very seriously, and as a result, has implemented the following measures to ensure the safety of your web applications:

14.

List Reserved Routes In Fuelphp.

Answer»

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.

In Fuel, there are 4 reserved routes. They are _root_, _403_, _404_ and _500_.

15.

What Is A Presenter In Fuelphp?

Answer»

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.

Note: PRESENTERS are optional. If you don’t NEED them, you can use Views directly, and keep the pre-processing logic in your controller.

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.

Note: Presenters are optional. If you don’t need them, you can use Views directly, and keep the pre-processing logic in your controller.

16.

List Some Features Of Fuelphp ?

Answer»

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

FuelPHP Features List:

17.

List Out Template Engines Supported By Fuelphp?

Answer»

FuelPHP supports DRIVERS for following TEMPLATE Engines. You are free to use any one of below for development.

FuelPHP supports drivers for following template Engines. You are free to use any one of below for development.

18.

What Is The Minimum Requirement For Installing Fuelphp?

Answer»

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
  • FILE info PHP extension installed and enabled
  • PHPUnit version 3.7 or greater is required if you want to run unit TESTS.

In order to install FuelPHP 1.8, your server must meet below requirements

19.

What Is The Current Stable Version Of Fuelphp?

Answer»

As on AUGUST 2017 VERSION: 1.8 is the current stable version of FUELPHP. You can download it FREE from here.

As on August 2017 Version: 1.8 is the current stable version of FuelPHP. You can download it free from here.

20.

What Is Fuelphp?

Answer»

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.

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.

Previous Next