Yaf_Action_Abstract::getControllerName

(Yaf >=3.3.7)

Yaf_Action_Abstract::getControllerNameGet controller name

Açıklama

public function Yaf_Action_Abstract::getControllerName(): ?string

Returns the name of the controller that owns this action.

Bağımsız Değişkenler

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

Dönen Değerler

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

Örnekler

Örnek 1 Yaf_Action_Abstract::getControllerName() example

<?php
class ListAction extends Yaf_Action_Abstract
{
    public function execute() {
        // the name of the controller that owns this action,
        // e.g. "Product" for a ProductController
        var_dump($this->getControllerName());
    }
}
?>

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

string(7) "Product"

Ayrıca Bakınız

add a note

User Contributed Notes

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