[TYPO3-ect] Problems with view

Elmar Hinz elmar07 at googlemail.com
Thu Oct 4 20:36:33 CEST 2007



Hi,

> 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?

Problem:

You try to call printAsText() on an object of the type tx_lib_object. There
is no such function in it.

Reason: 

$actionPipe = $this->makeInstance('tx_lib_phpViewProcessor',                     
$actionPipe);

This function doesn't work recursively. It fills the outer model into a
view, but doesn't fill the inner entry objects into views.

Solution:

http://typo3.org/extensions/repository/view/bananas/0.0.8/info/controllers%252Fclass.tx_bananas_controllers_list.php/

See  $view = $model->toObjectOfObjects($listClassName, $entryClassName);

Regards

Elmar








More information about the TYPO3-team-extension-coordination mailing list