.. _php/classes/view: View #### .. php:class:: View Extends `FuelPHP view class `__ and provides new functionalities. __construct($file, $data, $filter) ------------------------------------ .. php:method:: __construct($file = null, $data = null, $filter = null) Same specifications as in `FuelPHP view class `__, except when you prefix the view name by `!`, view redirections are ignored. ::redirect($from, $to, $callback) --------------------------------- .. php:staticmethod:: redirect($from, $to, $callback = true) :param string $from: The view to redirect from. :param mixed $to: The view to redirect to or callback. :param mixed $callback: Callback The function can redirect views: you can, for instance, make `\View::forge('a')` return the content of view `b`. Usages examples: .. code-block:: php