teste es doch mal. setze ein im hook und versuche es dann im template wieder auszulesen und anschließend auf null setzen.
hook:
PHP-Code:
public function __construct(Database_Result $objModule=null, $strColumn='main')
{
if ($objModule !== null)
parent::__construct($objModule, $strColumn);
}
public function myProcessFormData($arrPost, $arrForm, $arrFiles)
{
$this->import("Session");
$this->Session->set('cat','test');
}
}
form template
PHP-Code:
<?php if ($this->Session->get('cat')) : ?>
html
<?php
echo $this->Session->get('cat');
$this->Session->set('cat', null);
?>
html
<?php endif; ?>
Lesezeichen