Yaf_Dispatcher::getDefaultModule
PHP Manual
PHP Manual»Yaf_Dispatcher»Yaf_Dispatcher::getDefaultModule

Yaf_Dispatcher::getDefaultModule

(Yaf >=3.2.0)

Yaf_Dispatcher::getDefaultModule — Retrieve the default module name

Açıklama

public function Yaf_Dispatcher::getDefaultModule(): ?string

Get the default module name, which is used when a module name can not be extracted from the request URI. Defaults to "Index".

Bağımsız Değişkenler

Bu işlevin bağımsız değişkeni yoktur.

Dönen Değerler

The default module name, or null if the application is not initialized.

Örnekler

Örnek 1 Yaf_Dispatcher::getDefaultModule() example

<?php
$app = new Yaf_Application(dirname(__FILE__) . "/conf/application.ini");

var_dump(Yaf_Dispatcher::getInstance()->getDefaultModule());
?>

Yukarıdaki örnek şuna benzer bir çıktı üretir:

string(5) "Index"

Ayrıca Bakınız

To Top