Skip to content

Instantly share code, notes, and snippets.

@volandku
volandku / createMenuItem.php
Created July 5, 2019 07:59 — forked from kernusr/createMenuItem.php
Programmatically add menu item in Joomla!
<?php
use Joomla\CMS\Factory;
use Joomla\CMS\Form\Form;
use Joomla\CMS\MVC\Model\BaseDatabaseModel;
use Joomla\CMS\Response\JsonResponse;
use Joomla\CMS\Table\Table;
protected function addMenuItem($data){
$app = Factory::getApplication();