Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save CB9TOIIIA/eadcd210e6f70840b00904765e5293e8 to your computer and use it in GitHub Desktop.
Save CB9TOIIIA/eadcd210e6f70840b00904765e5293e8 to your computer and use it in GitHub Desktop.
Подключаем JBZoo в файле
define('_JEXEC', 1);
define('JBZOO_APP_GROUP', 'jbuniversal');
define('DS', DIRECTORY_SEPARATOR);
// include Joomla!
if (file_exists(dirname(__FILE__) . '/defines.php')) {
include_once dirname(__FILE__) . '/defines.php';
}
if (!defined('_JDEFINES')) {
define('JPATH_BASE', dirname(__FILE__));
require_once JPATH_BASE.'/includes/defines.php';
}
require_once JPATH_BASE.'/includes/framework.php';
$app = JFactory::getApplication('site');
$app->initialise();
// include Zoo & JBZoo
require_once JPATH_BASE . '/administrator/components/com_zoo/config.php';
require_once JPATH_BASE . '/media/zoo/applications/jbuniversal/framework/jbzoo.php';
JBZoo::init();
$db = JFactory::getDBO();
$doc = JFactory::getDocument();
$appId = (int) 1;
$zoo = App::getInstance('zoo');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment