Hybrid Controller class

A base controller that combines both templated and REST output

package Fuel
category Core
author Fuel Development Team

 Methods

After controller method has run output the template

after(\Fuel\Core\Response $response) 

Parameters

Load the template and create the $this->template object if needed

before() 

Decide whether to return RESTful or templated response Override in subclass to introduce custom switching logic.

is_restful() 

router

router(string $resource, array $arguments) : mixed

this router will call action methods for normal requests, and REST methods for RESTful calls

Parameters

$resource

string

$arguments

array

Exceptions

\HttpNotFoundException

Returns

mixed

 Properties

 

<p>page template</p>

$template : string