(Yaf >=3.2.0)
Yaf_Controller_Abstract::getName — Get controller name
Returns the name of the controller.
Bu işlevin bağımsız değişkeni yoktur.
Örnek 1 Yaf_Controller_Abstract::getName() example
<?php
class ProductController extends Yaf_Controller_Abstract
{
public function indexAction() {
// the controller name, without the "Controller" suffix
var_dump($this->getName());
}
}
?>Yukarıdaki örnek şuna benzer bir çıktı üretir:
string(7) "Product"