I'm using several response segments which I push on my action stack like this:
$userlogAction = clone($request);
$userlogAction->setActionName('userlog')->setControllerName('index');
$actionStack->pushStack($userlogAction);
Now when I test for the current action in my view:
$request = Zend_Controller_Front::getInstance()->getRequest();
$action = $request->getActionName();
I get the name of one (random?) action but I want to test for another.
How can I test if a certain action is among the actions on the stack as opposed to just getting the last one on the stack?