Нашел тему
http://joomlaforum.ru/index.php/topic,234049.0.html, она закрыта, вопросы остались.
Мой код
define('_JEXEC', 1);
define('JPATH_BASE', $_SERVER['DOCUMENT_ROOT'] );
define('DS', DIRECTORY_SEPARATOR);
require_once(JPATH_BASE.DS.'includes'.DS.'defines.php');
require_once(JPATH_BASE.DS.'includes'.DS.'framework.php');
$app = JFactory::getApplication('site')->initialise();
Tkani();
function Tkani(){
echo '123';
jimport( 'joomla.application.module.helper' );
$module = JModuleHelper::getModule( 'mod_phocagallery_image','dvd');
$attribs['style'] = 'xhtml';
$module->params='{"image_ordering":"7","image_size":"medium","limit_count":"1000"}';
print_r($module);
echo JModuleHelper::renderModule( $module, $attribs );
}
Скрипт отрабатывает до строки $app = JFactory::getApplication('site')->initialise(); , проверил методом echo '123';
Если ее за комментировать то выполнится все, но с ошибками, которые тоже хотелось бы победить и вывести модуль
Выполнение скрипта без JFactory::getApplication('site')->initialise();
123
jos-Error: Application Instantiation Error
Tkani() @ Z:\home\mebelit.ru\www\plugins\vmcustom\tkani\ajax.php:30
JModuleHelper :: getModule() @ Z:\home\mebelit.ru\www\plugins\vmcustom\tkani\ajax.php:35
JModuleHelper :: _load() @ Z:\home\mebelit.ru\www\libraries\joomla\application\module\helper.php:36
JFactory :: getApplication() @ Z:\home\mebelit.ru\www\libraries\joomla\application\module\helper.php:297
JError :: raiseError() @ Z:\home\mebelit.ru\www\libraries\joomla\factory.php:99
JError :: raise() @ Z:\home\mebelit.ru\www\libraries\joomla\error\error.php:251
JError :: throwError() @ Z:\home\mebelit.ru\www\libraries\joomla\error\error.php:176
call_user_func_array() @ Z:\home\mebelit.ru\www\libraries\joomla\error\error.php:214
JError :: handleCallback()
call_user_func() @ Z:\home\mebelit.ru\www\libraries\joomla\error\error.php:765
JError :: customErrorPage()
JFactory :: getApplication() @ Z:\home\mebelit.ru\www\libraries\joomla\error\error.php:784
JError :: raiseError() @ Z:\home\mebelit.ru\www\libraries\joomla\factory.php:99
JError :: raise() @ Z:\home\mebelit.ru\www\libraries\joomla\error\error.php:251