Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 1.03 KB

action.md

File metadata and controls

48 lines (35 loc) · 1.03 KB
lang php

Action Model

class ExpressionEngine\Model\Addon\Action

[TOC]

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;