Пример #1
0
 public function __construct($application)
 {
     parent::__construct($application);
     $this->initViewHelperPath();
     $headScript = new Zend_View_Helper_HeadScript();
     $headScript->appendFile(Zend_Registry::get('StaticBaseUrl') . 'application/modules/Activity/externals/scripts/core.js');
 }
Пример #2
0
 public function __construct($application)
 {
     parent::__construct($application);
     date_default_timezone_set('UTC');
     if (function_exists('mb_internal_encoding')) {
         mb_internal_encoding("UTF-8");
     }
     if (function_exists('iconv_set_encoding')) {
         // Not sure if we want to do all of these
         iconv_set_encoding("input_encoding", "UTF-8");
         iconv_set_encoding("output_encoding", "UTF-8");
         iconv_set_encoding("internal_encoding", "UTF-8");
     }
 }
Пример #3
0
 public function __construct($application)
 {
     parent::__construct($application);
     // Add view helper and action helper paths
     $this->initViewHelperPath();
     $this->initActionHelperPath();
     // Add main user javascript
     //$headScript = new Zend_View_Helper_HeadScript();
     //$headScript->appendFile('application/modules/User/externals/scripts/core.js');
     // Check user online state
     $viewer = Engine_Api::_()->user()->getViewer();
     $table = Engine_Api::_()->getDbtable('online', 'user');
     // Check current user
     $table->check($viewer);
 }
Пример #4
0
 public function __construct($application)
 {
     parent::__construct($application);
     // Add view helper and action helper paths
     $this->initViewHelperPath();
     $this->initActionHelperPath();
     // Add main user javascript
     //$headScript = new Zend_View_Helper_HeadScript();
     //$headScript->appendFile('application/modules/User/externals/scripts/core.js');
     // Get viewer
     $viewer = Engine_Api::_()->user()->getViewer();
     // Check if they were disabled
     if ($viewer->getIdentity() && !$viewer->enabled) {
         Engine_Api::_()->user()->getAuth()->clearIdentity();
         Engine_Api::_()->user()->setViewer(null);
     }
     // Check user online state
     $table = Engine_Api::_()->getDbtable('online', 'user');
     $table->check($viewer);
 }
Пример #5
0
 public function __construct($application)
 {
     parent::__construct($application);
     date_default_timezone_set('UTC');
     if (function_exists('mb_internal_encoding')) {
         mb_internal_encoding("UTF-8");
     }
     if (function_exists('iconv_set_encoding')) {
         // Not sure if we want to do all of these
         iconv_set_encoding("input_encoding", "UTF-8");
         iconv_set_encoding("output_encoding", "UTF-8");
         iconv_set_encoding("internal_encoding", "UTF-8");
     }
     // Production
     // production mode
     if (APPLICATION_ENV === 'production' && version_compare(phpversion(), '5.3.0', '>=')) {
         error_reporting(E_ALL & ~E_STRICT & ~E_DEPRECATED);
     } elseif (APPLICATION_ENV === 'production') {
         error_reporting(E_ALL & ~E_STRICT);
     }
 }
Пример #6
0
 public function __construct($application)
 {
     parent::__construct($application);
     ///$this->initPluginResourcePath();
     //date_default_timezone_set('America/Los_Angeles');
     date_default_timezone_set('UTC');
     if (function_exists('mb_internal_encoding')) {
         mb_internal_encoding("UTF-8");
     }
     /**
     * No idea where this should go right now. Must be intialized after module
     * include paths are set up
         // Set up plugin loader cache
         if( APPLICATION_ENV != 'development' )
         {
      $classFileIncCache = APPLICATION_PATH . '/temporary/pluginLoaderCache.php';
      if( file_exists($classFileIncCache) )
      {
        include_once $classFileIncCache;
      }
      Zend_Loader_PluginLoader::setIncludeFileCache($classFileIncCache);
         }
     */
 }
Пример #7
0
 /**
  * Sets the local copy of a module bootstrap
  * 
  * @param Zend_Application_Module_Bootstrap $bootstrap
  * @return Engine_Api
  */
 public function setModuleBootstrap(Engine_Application_Bootstrap_Abstract $bootstrap)
 {
     $name = strtolower($bootstrap->getModuleName());
     $this->_modules[$name] = $bootstrap;
     return $this;
 }
Пример #8
0
 public function __construct($application)
 {
     parent::__construct($application);
     $this->initViewHelperPath();
 }
Пример #9
0
 public function __construct($application)
 {
     parent::__construct($application);
     $application->getApplication()->getAutoloader()->register('SocialConnect', $this->getModulePath());
 }
Пример #10
0
 public function __construct($application)
 {
     parent::__construct($application);
     $this->initViewHelperPath();
     Zend_Controller_Front::getInstance()->registerPlugin(new Seo_Controller_Plugin_Core());
 }
Пример #11
0
 public function __construct($application)
 {
     parent::__construct($application);
     $application->getApplication()->getAutoloader()->register('ProfileCompleteness', $this->getModulePath());
 }
Пример #12
0
 public function __construct($application)
 {
     parent::__construct($application);
 }