The controller is created by the dispatcher from the routing
information returned by the router.
The controller is responsible for business logic and returns its
results in an ezcMvcResult object.
Users should implement inheritted classes to provide the
actions.
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 doGreet()
{
$ret = new ezcMvcResult;
$ret->variables['greeting'] = 'Hello World!';
return $ret;
}
?>