Nico Edtinger wrote:
I just extended  Zend_Controller_Action to change dispatch():

    public function dispatch($action)
    {
$method = !empty($_SERVER['REQUEST_METHOD']) ? strtolower($_SERVER['REQUEST_METHOD']) : 'get';
        if (method_exists($this, $action . $method)) {
            parent::dispatch($action . $method);
        } else {
            parent::dispatch($action);
        }
    }

If I have a method called indexActionGet() or indexActionPost() it gets called if the request method matches. If not indexAction() is called (or __call() if it doesn't exist).
very smart, thanks alot.

yours,
kai

Reply via email to