示例#1
0
	public function viewCreate($params)
	{

		$strings = Config::load('guildTranslations', 'translations/guild');
		foreach ($strings as $key => $str) {
			Request::getInstance()->setParam('txt.' . $key, _($str));
		}
		Request::getInstance()->setParam('txt.enter_guild_name', _('alliance.enter_guild_name'));
		Request::getInstance()->setParam('txt.create', _('common.create'));

		$params['isLocked'] = getHero()->getLevel() < 15 ? true : false;

		return $params;
	}