Created
August 2, 2017 10:42
-
-
Save CB9TOIIIA/eadcd210e6f70840b00904765e5293e8 to your computer and use it in GitHub Desktop.
Подключаем JBZoo в файле
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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