本文整理匯總了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');
}