PHP 8.6.0 Beta 3 is available for testing

Yaf_Controller_Abstract::getModuleName

(Yaf >=1.0.0)

Yaf_Controller_Abstract::getModuleNameGet module name

Açıklama

public function Yaf_Controller_Abstract::getModuleName(): ?string

Returns the name of the module the controller belongs to.

Bağımsız Değişkenler

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

Dönen Değerler

The module name as a string, or null if it is not set.

Örnekler

Örnek 1 Yaf_Controller_Abstract::getModuleName() example

<?php
class IndexController extends Yaf_Controller_Abstract
{
    public function indexAction() {
        // assuming the request was dispatched to the
        // default "Index" module
        var_dump($this->getModuleName());
    }
}
?>

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

string(5) "Index"

Ayrıca Bakınız

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top