Added Dynamic Router Implementation to resolve gh-74

This commit is contained in:
2018-01-24 00:05:57 +02:00
parent 850b5867e1
commit 1c20e2ef8b
39 changed files with 1648 additions and 1097 deletions

View File

@ -48,7 +48,7 @@ class ComponentbuilderControllerAjax extends JControllerLegacy
$this->registerTask('getCronPath', 'ajax');
$this->registerTask('tableColumns', 'ajax');
$this->registerTask('fieldSelectOptions', 'ajax');
$this->registerTask('getImportScripts', 'ajax');
$this->registerTask('getDynamicScripts', 'ajax');
$this->registerTask('getButton', 'ajax');
$this->registerTask('getButtonID', 'ajax');
$this->registerTask('getAjaxDisplay', 'ajax');
@ -306,14 +306,14 @@ class ComponentbuilderControllerAjax extends JControllerLegacy
}
}
break;
case 'getImportScripts':
case 'getDynamicScripts':
try
{
$returnRaw = $jinput->get('raw', false, 'BOOLEAN');
$typeValue = $jinput->get('type', NULL, 'WORD');
if($typeValue && $user->id != 0)
{
$result = $this->getModel('ajax')->getImportScripts($typeValue);
$result = $this->getModel('ajax')->getDynamicScripts($typeValue);
}
else
{