php8.5
Home/ Manual/ reference / yaf/ The Yaf_Action_Abstract class

The Yaf_Action_Abstract class

An action can be defined in a separate file in Yaf (see Yaf_Controller_Abstract). That is, an action method can also be a Yaf_Action_Abstract class.

Intro

An action can be defined in a separate file in Yaf (see Yaf_Controller_Abstract). That is, an action method can also be a Yaf_Action_Abstract class.

Since there should be a entry point which can be called by Yaf, you must implement the abstract method Yaf_Action_Abstract::execute in your custom action class.

Class synopsis

class Yaf_Action_Abstract { }

Properties

_controller

The controller instance that owns this action, retrievable with Yaf_Action_Abstract::getController.

Yaf-action-abstract

Source: reference/yaf/yaf-action-abstract.xml · from the official PHP manual (php/doc-en)