CMS Events
Events Directory Structure
application/
└── Events/
├── Backend/
│ ├── ExampleEvent.php
│ └── ...
└── Frontend/
├── ExampleEvent.php
└── ...Creating a New Event
<?php
namespace App\Events\Frontend;
use System\Libraries\Event;
class ExampleEvent extends Event
{
public function __construct($data)
{
$this->data= $data;
}
public function handle()
{
// Perform an action when the event is triggered
echo "CMS Full Form Event: Data: " . json_encode($this->data) . "<br>";
}
}Using Event
Last updated
Was this helpful?