public function output($txt)
{
if (!is_null($this->hook('output', array($txt)))) {
if (isset($this->owner->template) && !empty($this->owner->template)) {
$this->owner->template->append($this->spot, $txt, false);
} elseif ($this->owner instanceof App_CLI) {
echo $txt;
}
}
}