本文整理匯總了PHP中BaseController::index方法的典型用法代碼示例。如果您正苦於以下問題:PHP BaseController::index方法的具體用法?PHP BaseController::index怎麽用?PHP BaseController::index使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類BaseController
的用法示例。
在下文中一共展示了BaseController::index方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
/**
* Assign views according to uri
*
* @param $uri
*/
public function __construct($uri)
{
$mobileHandlerUri = '';
$creditCardHandlerUri = '';
if (preg_match("/^\\/PaymentAPI\\/Mobile\\/Handler.+\$/", $uri)) {
$mobileHandlerUri = $uri;
} elseif (preg_match("/^\\/PaymentAPI\\/CreditCard\\/Handler.+\$/", $uri)) {
$creditCardHandlerUri = $uri;
}
switch ($uri) {
case "/PaymentAPI/":
BaseController::index();
break;
case "/PaymentAPI/Mobile/":
MobileController::showMobile();
break;
case $mobileHandlerUri:
MobileController::getMobileData();
break;
case "/PaymentAPI/CreditCard/":
CreditCardController::showCreditCard();
break;
case $creditCardHandlerUri:
CreditCardController::getCreditCardData();
break;
default:
BaseController::errorPage();
}
}
示例2: index
/**
* GET /login
*
* @return \View
*/
public function index()
{
$dashboard = new Dashboard(Auth::user());
$dashboard->setupNav();
// dd($dashboard->getAllConfig());
$this->addParam($dashboard->getAllConfig());
return parent::index();
}
示例3: index
/**
* GET /login
*
* @return \View
*/
public function index()
{
$this->setupPage();
return parent::index();
}
示例4: index
public function index()
{
parent::index();
}