本文整理匯總了PHP中erLhcoreClassModule::moduleInit方法的典型用法代碼示例。如果您正苦於以下問題:PHP erLhcoreClassModule::moduleInit方法的具體用法?PHP erLhcoreClassModule::moduleInit怎麽用?PHP erLhcoreClassModule::moduleInit使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類erLhcoreClassModule
的用法示例。
在下文中一共展示了erLhcoreClassModule::moduleInit方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: spl_autoload_register
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
@ini_set('error_reporting', 0);
@ini_set('display_errors', 0);
@ini_set('session.gc_maxlifetime', 200000);
@ini_set('session.cookie_lifetime', 2000000);
@ini_set('session.cookie_httponly', 1);
require_once "lib/core/lhcore/password.php";
require_once "ezcomponents/Base/src/base.php";
// dependent on installation method, see below
ezcBase::addClassRepository('./', './lib/autoloads');
spl_autoload_register(array('ezcBase', 'autoload'), true, false);
erLhcoreClassSystem::init();
// your code here
ezcBaseInit::setCallback('ezcInitDatabaseInstance', 'erLhcoreClassLazyDatabaseConfiguration');
$Result = erLhcoreClassModule::moduleInit();
$tpl = erLhcoreClassTemplate::getInstance('pagelayouts/main.php');
$tpl->set('Result', $Result);
if (isset($Result['pagelayout'])) {
$tpl->setFile('pagelayouts/' . $Result['pagelayout'] . '.php');
}
echo $tpl->fetch();
flush();
session_write_close();
if (function_exists('fastcgi_finish_request')) {
fastcgi_finish_request();
}
erLhcoreClassChatEventDispatcher::getInstance()->executeFinishRequest();