PageRenderTime 40ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/src/site/components/com_application/aliases.php

https://github.com/bhar1red/anahita
PHP | 23 lines | 8 code | 4 blank | 11 comment | 0 complexity | d933d7e1e3b3eb028a1fd419fe61c26a MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1
  1. <?php
  2. /**
  3. * LICENSE: ##LICENSE##
  4. *
  5. * @category Anahita
  6. * @author Arash Sanieyan <ash@anahitapolis.com>
  7. * @author Rastin Mehr <rastin@anahitapolis.com>
  8. * @copyright 2008 - 2010 rmdStudio Inc./Peerglobe Technology Inc
  9. * @license GNU GPLv3 <http://www.gnu.org/licenses/gpl-3.0.html>
  10. * @version SVN: $Id: view.php 13650 2012-04-11 08:56:41Z asanieyan $
  11. * @link http://www.anahitapolis.com
  12. */
  13. $config = new JConfig();
  14. $config->cache_prefix = md5($config->secret).'-cache-system';
  15. $config->cache_enabled = $config->caching;
  16. KService::setAlias('application.registry', 'com://site/application.registry');
  17. KService::setAlias('application', 'com://site/application');
  18. KService::setConfig('application.registry', array('cache_prefix'=>$config->cache_prefix,'cache_enabled'=>$config->cache_enabled));
  19. ?>