(Yaf >=1.0.0)
Yaf_Request_Abstract::getActionName — Retrieve the action name
Retrieve the action name
Diese Funktion besitzt keine Parameter.
The action name, or null if not set.
Beispiel #1 Yaf_Request_Abstract::getActionName() example
<?php
class ProductController extends Yaf_Controller_Abstract
{
public function viewAction()
{
// Assuming the request is /product/view/id/17
var_dump($this->getRequest()->getActionName());
}
}
?>Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
string(4) "view"