{
$component = $this->getComponent(array('view'));
$context = $component->listItems();
+ if ($context instanceof IPF_HTTP_Response)
+ return $context;
return $this->render($component->listTemplate(), $context);
}
{
$component = $this->getComponent(array('view', 'add'));
$context = $component->addItem();
+ if ($context instanceof IPF_HTTP_Response)
+ return $context;
return $this->render($component->addTemplate(), $context);
}
{
$component = $this->getComponent(array('view', 'change'));
$context = $component->editItem($this->params[3]);
+ if ($context instanceof IPF_HTTP_Response)
+ return $context;
return $this->render($component->editTemplate(), $context);
}
{
$component = $this->getComponent(array('view', 'delete'));
$context = $component->deleteItem($this->params[3]);
+ if ($context instanceof IPF_HTTP_Response)
+ return $context;
return $this->render($component->deleteTemplate(), $context);
}