- The "default" controller uses the actions name to map to a method, but this algorithm can be easily overridden.
<?php
class helloController extends ezcMvcController
{
public function action_greet()
{
$ret = new ezcMvcResult;
$ret->variables['greeting'] = 'Hello World!';
return $ret;
}
public function createActionMethodName( $actionName )
{
return 'action_' . $actionName;
}
?>