本文整理匯總了PHP中PageController::init方法的典型用法代碼示例。如果您正苦於以下問題:PHP PageController::init方法的具體用法?PHP PageController::init怎麽用?PHP PageController::init使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類PageController
的用法示例。
在下文中一共展示了PageController::init方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: init
public function init()
{
parent::init();
Requirements::javascript("themes/echo-theme/javascript/menu.js");
Requirements::css("themes/echo-theme/css/menu.css");
Requirements::css("themes/echo-theme/css/contact.css");
// $css[] = $this->ThemeDir() . '/css/home.css';
// $css[] = $this->ThemeDir() . '/css/menu.css';
// // $css[] = $this->ThemeDir() . '/css/stylesheet3.css';
// Requirements::combine_files('combined.css', $css);
// Requirements::process_combined_files();
}
示例2: setPage
/**
* @return void
* @Description Sitenin çalışabilmesi için gerekli bileşenlerin load edildiği method
*/
public static final function setPage()
{
// session bilgilerini set eder
Session::set();
$LANGUAGE = new \model\language\Language($_GET);
$LANGUAGE->init();
// login bilgilerini set eder
//$AUTH = Auth::getInstance();
//$AUTH->init();
// formlar için token oluşturur
Token::createTokenSession();
// ################################################################
parent::init();
// formMessage bilgisini siliyoruz
Session::deleteSession(['formMessage']);
// session commit
Session::commit();
}
示例3: init
<?php
class PageController
{
public function init()
{
$this->Controll();
}
public function Controll()
{
header('location: ../../html/pages/main_login_a.html');
}
}
$page = new PageController();
$page->init();