ExpressionEngine Docs

Action Model

class ExpressionEngine\Model\Addon\Action

Properties

action_id Key

class

method

csrf_exempt

Relationships

This model has no relationships.

Methods

This model has no additional methods.

Events

This model has no events.

Examples

Get an Action ID by Method

$action_id = ee('Model')
                ->get('Action')
                ->filter('method','your_addon_method')
                ->first()
                ->action_id;

// Create a URL to that action.
$action_url = ee()->functions->fetch_site_index(0, 0) . QUERY_MARKER . 'ACT=' . $action_id;