Zum Inhalt springen

Tx_Extbase_Utility_Extension::configurePlugin bekomme das Plugin nicht geladen

Erstellt am 4. Juli 2010 · 4 Antworten · letzte Antwort am 5. Juli 2010

Tags: Frage

einpraegsam.​net ·

Hi,

irgendwo hänge ich an einem Anfängerproblem - will das Inventory Beispiel nachbauen, bekomme das Plugin aber nicht geladen:
Bild: easycaptures.com/…/7993731865.jpg

Das ist das, was in der ext_localconf.php steht:

Tx_Extbase_Utility_Extension::configurePlugin(
	$_EXTKEY,
	'List',
	array(
		'Inventory' => 'list'
	)
);

Dazu gibt es natürlich noch eine InventoryController.php:

class Tx_Inventory_Controller_InventoryController extends Tx_Extbase_MVC_Controller_ActionController {	
	public function listAction() {
		$productRepository = t3lib_div::makeInstance('Tx_Inventory_Domain_Repository_ProductRepository');
		$products = $productRepository->findAll();
		$this->view->assign('products', $products);
	}
}

Jemand eine Idee?

Sperber ·

Hallo auch,

meines Wissens ist bei configurePlugin() der dritte Parameter Pflicht. Dieser gibt an, welche Action nicht gecached werden soll.

Tx_Extbase_Utility_Extension::configurePlugin(
	$_EXTKEY,
	'List',
	array(
		'Inventory' => 'list'
	),
	array(
		'Inventory' => ''
	)
);

Ich hoffe, das ist/war das Problem.

Viele Grüße,
Sascha

Sperber ·

Hast Du das Plugin überhaupt in der ext_tables.php registriert?

Tx_Extbase_Utility_Extension::registerPlugin(
	$_EXTKEY,
	'List',
	'Inventory Plugin'
);