[TYPO3-ect] Problems with view
Michael Knoll
mimi at kaktusteam.de
Thu Oct 4 19:39:02 CEST 2007
Hi list,
I have a problem with lib/div, which I don't know how to solve.
I have the following code in my controller:
$actionPipe = $this->makeInstance('tx_mklvcommunity_models_user');
$actionPipe->loadUserByUid(tx_mklvcommunity_helper::getLoggedInUid());
$actionPipe = $this->makeInstance('tx_lib_phpViewProcessor',
$actionPipe);
$actionPipe->render('userDetailsTemplate');
$actionPipe = $this->makeInstance('tx_lib_translatorProcessor',
$actionPipe);
return $actionPipe->result();
Now I want to do something like
$entry->printAsText('username');
in my template. The template is loaded correctly, as I get the correct
output from static template contents. But the render functions of the
view class seem to be unavailable. The message of xdegbug:
Call to undefined method tx_lib_object::printAsText() in
/var/www/localhost/svn/subida/typo3conf/ext/mklv_community/templates/userDetails.php
on line 10
What am I doing wrong?
Would be nice if you could help me out.
Regards
Mimi
More information about the TYPO3-team-extension-coordination
mailing list