[TYPO3-english] [Solved] Extbase 1.2.0 dispatch problem

Rayuth You (Yuth) rayuth at typo3cambodia.org
Mon Jan 16 11:38:43 CET 2012


Hi list

Now I found the correct answer
$configuration = array(
	'pluginName' => 'Pi1',
	'extensionName' => 'Nezzoonlineconsulting',
	'controller' => 'QuestionAnswer',
	'action' => 'removeNonActiveAccount',
	'switchableControllerActions' => array (
		'1' => array('controller' => 'QuestionAnswer', 'actions' => 
'removeNonActiveAccount')
	)
);

$dispatcher = new Tx_Extbase_Dispatcher();
$dispatcher->dispatch('', $configuration);

Regards,
Yuth

On 01/16/2012 05:11 PM, Rayuth You (Yuth) wrote:
> Hi list,
>
> In extbase 1.3.0
> $bootstrap = t3lib_div::makeInstance('Tx_Extbase_Core_Bootstrap');
> $bootstrap->run('', $configuration);
>
> And in 1.2.0, I changed from Tx_Extbase_Core_Bootstrap to
> Tx_Extbase_Dispatcher
> $bootstrap = t3lib_div::makeInstance('Tx_Extbase_Dispatcher');
> $bootstrap->dispatch('', $configuration);
>
> But I got message error:
> Fatal error: Class 'Tx_ExtName_Controller_StandardController' not found
> in /var/www/typo3_src-4.5.0/t3lib/class.t3lib_div.php on line 5277
>
> My configuration:
> $configuration = array(
> 'pluginName' => 'Pi1',
> 'extensionName' => 'ExtName',
> 'switchableControllerActions' => array(
> 'ControllerName' => array(
> 'actions' => 'actionName'
> )
> )
> );
>
> Did I use the wrong class name? or wrong configuration? Any hint?
>
> Regards,
> Yuth
>


-- 
Khmer TYPO3 User Group
Spirit of sharing

Rayuth You
Web Developer

M: +855 11 262 078
E: rayuth at typo3cambodia.org


More information about the TYPO3-english mailing list