[TYPO3-mvc] Syntax Property eines Objekt im Controller
Kerstin Finke
kerstinfinke at hotmail.com
Thu Nov 15 15:47:47 CET 2012
Dear List,
I have a detailview in my controller. The action gets the object as
parameter and the detailview is shown correctly in the frontend.
What I want now:
I want to show the title of the object as pagetitle (instead of
"SingleViewPage" or something like that)
What is the correct syntax? I tried this:
/**
* Show action for this controller ( SingleView)
* @param Tx_HnmImmo_Domain_Model_Flat $flat The flat to be shown
* @return string
*/
public function showAction(Tx_HnmImmo_Domain_Model_Flat $flat) {
$title = $flat->title;
$GLOBALS['TSFE']->indexedDocTitle = $title;
$this->view->assign('flats', $flat);
}
I tried also:
$title = $flat->Tx_HnmImmo_Domain_Model_Flat['title'];
Can someone please help? Thanks in advance!
Kerstin
More information about the TYPO3-project-typo3v4mvc
mailing list