示例#1
0
 /**
  * Init JBZoo Framework
  */
 protected function _loadJBZoo()
 {
     define('JBZOO_APP_GROUP', 'jbuniversal');
     // 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();
     $this->app = \App::getInstance('zoo');
     $lang = \JFactory::getLanguage();
     $lang->setDefault('ru-RU');
     $lang->load('com_jbzoo', $this->app->path->path('jbapp:'), 'ru-RU', true);
 }
示例#2
0
 /**
  * Init JBZoo Framework
  */
 protected function _loadJBZoo()
 {
     define('JBZOO_APP_GROUP', 'jbuniversal');
     // 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();
     $this->app = \App::getInstance('zoo');
 }