[TYPO3-dev] Problem with changing query according to post-parameter
Franz Koch
typo.removeformessage at fx-graefix.de
Sat Aug 1 10:45:38 CEST 2009
...
>> Do you have any other suggestions?
>
> where are you list/result objects stored? Assuming they are in the
> object array $this->results try the following and drop the
> exchangeArray: $view->render($this->results);
or let's better say, try this:
---- in your controller ------------------------
$view = $this->makeInstance('tx_lib_renderer');
$view->setTemplateDirectory(trim($this->mergedSetup->get('templateDirectory')));
$view->setTemplateFile(trim($this->mergedSetup->get('templates.'.$templateKey)));
$view->formator = $this->makeInstance('tx_lib_formator');
$view->render($this->results);
------------------------------------------------
--- in your template ---------------------------
if($this->isNotEmpty()) {
$content='<ul>';
for($this->rewind(); $this->valid(); $this->next()) {
$content.= '<li>';
$content.= $this->formator->printAsText( $this->current() ); ##
$content.= '</li>';
}
$content .='</ul>';
echo $content;
}
------------------------------------------------
--
kind regards,
Franz Koch
---------------------------------------------------
PayPal-Account: 'paypal _at_ elements-net _dot_ de'
---------------------------------------------------
More information about the TYPO3-dev
mailing list