1) For your getActionName()
(in your controller/action):
$this->view->setVar('myVar', $this->dispatcher->getActionName());
2) To stop a validation (or don't do it), just don't add it to the validator. Do a class that extends from Validation
, and there create a method that adds some validators depending of your action name. Later, just call it with $this->validator->myValidation()
(you could send a param with the variable described before).