Для сторонних библиотек есть /system/libs
Спасибо понял не до конца конечно вяжется с Composer. Но уже хотя бы не придумывать колесо.
Для сторонних библиотек есть /system/libs
Прошу прощения, но данная директория по моему для хранения полей. Или не так. Почему именно она???
Но я бы хранил в /system/fields/vendor/
function newIngredient(){ $('#dlg').dialog('open').dialog('center').dialog('setTitle','Добавление ингредиента'); $('#fm').form('clear'); url = '<?php echo href_to('recipes',$recipe['id'],'save_ingredient'); ?>'; } function saveIngredient(){ $('#fm').form('submit',{ url: url, dataType: 'json', onSubmit: function(){ //return $(this).form('validate'); }, success: function(result){ var result = eval('('+result+')'); if (result.errorMsg){ $.messager.show({ title: 'Error', msg: result.errorMsg }); } else { $('#dlg').dialog('close'); // close the dialog $('#dg').datagrid('reload'); // reload the user data } } }); }
if (!$this->request->isAjax()){ cmsCore::error404(); } $template = cmsTemplate::getInstance(); 'id' => 5, 'qantity' => '1', 'ingr_title' => '1', 'uint_title' => '1' ); //print_r($request_array); $template->renderJSON($result); $this->halt();