本文整理汇总了PHP中iaLanguage::load方法的典型用法代码示例。如果您正苦于以下问题:PHP iaLanguage::load方法的具体用法?PHP iaLanguage::load怎么用?PHP iaLanguage::load使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类iaLanguage
的用法示例。
在下文中一共展示了iaLanguage::load方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: init
public function init()
{
$this->iaDb = $this->factory('db');
$this->factory(array('sanitize', 'validate', 'language', 'users'));
$this->iaView = $this->factory('view');
$this->iaCache = $this->factory('cache');
iaSystem::renderTime('core', 'Basic Classes Initialized');
$this->getConfig();
iaSystem::renderTime('core', 'Configuration Loaded');
iaSystem::setDebugMode();
$this->_parseUrl();
setlocale(LC_COLLATE | LC_TIME, $this->get('locale'));
// we can only load strings when we know if a specific language is requested based on URL
iaLanguage::load($this->iaView->language);
$this->_fetchHooks();
iaSystem::renderTime('core', 'Hooks Loaded');
$this->startHook('phpCoreUrlRewrite');
$this->_setConstants();
$this->startHook('init');
$this->_authorize();
$this->_forgeryCheck();
$this->getCustomConfig();
$this->startHook('phpCoreBeforePageDefine');
$this->iaView->definePage();
$this->iaView->loadSmarty();
$this->startHook('bootstrap');
$this->_defineModule();
$this->iaView->defineOutput();
$this->_checkPermissions();
$this->_executeModule();
$this->startHook('phpCoreBeforeJsCache');
$this->iaCache->createJsCache();
if (self::ACCESS_FRONT == $this->getAccessType() && iaView::REQUEST_HTML == $this->iaView->getRequestType() && iaView::PAGE_ERROR != $this->iaView->name()) {
$this->factory('users')->registerVisitor();
}
$this->startHook('phpCoreBeforePageDisplay');
$this->iaView->output();
$this->startHook('finalize');
}