TYPO3.CMS 6.2 Extension jquery.dataTables: Unterschied zwischen den Versionen

Aus Vosp.info
Wechseln zu:Navigation, Suche
(Quellen)
(Quellen)
Zeile 20: Zeile 20:
  
 
* [http://www.wiki-cms.com/Typo3-Fluid Typo3-Fluid]
 
* [http://www.wiki-cms.com/Typo3-Fluid Typo3-Fluid]
 +
 +
= Probleme =
 +
== Fatal error: Call to a member function replaceObject() on a non-object in typo3/sysext/extbase/Classes/Persistence/Repository.php on line 222 ==
 +
 +
folgendes löst das Problem, weiß aber nicht genau ob das nicht anders besser geht
 +
 +
<source lang="php">
 +
public function updateAction(Tx_Ncfluid_Domain_Model_Table $tablerow) {
 +
 +
$objectManager = t3lib_div::makeInstance('Tx_Extbase_Object_ObjectManager');
 +
$tableRepository = $objectManager->get('Tx_Ncfluid_Domain_Repository_TableRepository');
 +
$tableRepository->update($tablerow);
 +
 +
// alter code führte zur Fehlermeldung;
 +
// @see initializeAction -- $this->tableRepository =& t3lib_div::makeInstance('Tx_Ncfluid_Domain_Repository_TableRepository');
 +
// $this->tableRepository->update($tablerow);
 +
// $this->flashMessageContainer->add('Your tablerow was updated.');
 +
 +
$this->redirect('index');
 +
}
 +
</source>
 +
 
  
 
=Quellen=
 
=Quellen=
 
* [http://t3-developer.com/extbase-fluid/datepicker/ Datumseingaben in Fluid Formularen - Datepicker]
 
* [http://t3-developer.com/extbase-fluid/datepicker/ Datumseingaben in Fluid Formularen - Datepicker]
 
* [http://www.typo3.net/forum/beitraege/extbase_und_fluid/108844/ Could not ultimately dispatch the request after 101 iterations ]
 
* [http://www.typo3.net/forum/beitraege/extbase_und_fluid/108844/ Could not ultimately dispatch the request after 101 iterations ]

Version vom 28. Februar 2013, 13:31 Uhr

typo3

Ziel ist es in einer typo3 Extension eine Datenbanktabelle auszulesen und in der Oberfläche (frontend) dynamisch manipulierbar (add,edit,delete row) zumachen.

Notizen

Probleme

Fatal error: Call to a member function replaceObject() on a non-object in typo3/sysext/extbase/Classes/Persistence/Repository.php on line 222

folgendes löst das Problem, weiß aber nicht genau ob das nicht anders besser geht

	public function updateAction(Tx_Ncfluid_Domain_Model_Table $tablerow) {

		$objectManager = t3lib_div::makeInstance('Tx_Extbase_Object_ObjectManager');
		$tableRepository = $objectManager->get('Tx_Ncfluid_Domain_Repository_TableRepository');		
		$tableRepository->update($tablerow);

//		alter code führte zur Fehlermeldung; 
//		@see initializeAction -- $this->tableRepository =& t3lib_div::makeInstance('Tx_Ncfluid_Domain_Repository_TableRepository');
//		$this->tableRepository->update($tablerow);
//		$this->flashMessageContainer->add('Your tablerow was updated.');

		$this->redirect('index');
	}


Quellen