[TYPO3-mvc] extbase makes me crazy: The default controller can not be determined.

Manfred Rutschmann manfred.rutschmann at revier.de
Wed Mar 9 16:07:26 CET 2011


I have updated a existing extension/typo3 to t3 4.5.2. Now i want create a
new pluign (It`s the bandarole). Can anyone give me a hint where the
problem is in my configuration?

Thanks & Regards Manfred

ext_tables.php:

Tx_Extbase_Utility_Extension::registerPlugin (
						$_EXTKEY, 
						'main', 
						'Etikettenkonfigurator::Etikettenkonfigurator' );  

Tx_Extbase_Utility_Extension::registerPlugin (
						$_EXTKEY, 
						'userarea', 
						'Etikettenkonfigurator::Mein Etikettenpark' );  
Tx_Extbase_Utility_Extension::registerPlugin (
						$_EXTKEY, 
						'bandarole', 
						'Etikettenkonfigurator::Bandarolenmodul' );  


ext_localconf.php:
Tx_Extbase_Utility_Extension::configurePlugin(
	$_EXTKEY, 
	'bandarole', 
	array('Individual'=>'index'),
	array('Individual'=>'index')
);	

Tx_Extbase_Utility_Extension::configurePlugin (
	$_EXTKEY, 
    'main',
    Array ('Label'=>'index,showtools'),
    Array ('Label'=>'index,showtools')
);

Tx_Extbase_Utility_Extension::configurePlugin (
	$_EXTKEY, 
    'userarea',
    Array ('Restricted'=>'index,login,account'),
    Array ('Restricted'=>'index,login,account')
);

Typoscript:
config.tx_extbase {
	persistence {
		storagePid = 14
	}
}

config.tx_extbase.persistence.classes {
    Tx_MrEtikett_Domain_Model_FrontendUser {
        mapping {
            tableName = fe_users
        }
    }
    Tx_MrEtikett_Domain_Model_FrontendUserGroup {
        mapping {
            tableName = fe_groups
        }
    }
}

plugin.tx_mretikett_pi1.persistence.storagePid = 14

plugin.tx_mretikett_pi1 {
	
	settings{
		delivery {
			options{
				0 {
					cost = 5.50
					brutto = 1
					label = Versand innerhalb 2 Wochen
				}
				1 {
					cost = 12.00
					brutto = 1
					label = Versand innerhalb 1 Woche
				}
			}

		}
		payment {
			options{
				0 {
					cost = 5.95
					brutto = 1
					label = Nachnahme
				}
			1	 {
					cost = 0.00
					brutto = 1
					label = Vorkasse
				}
			}
		}
		
		data {
			user {
				regUsergroup = 1
				noregUsergroup = 2 
			}
		}
		mwst = 1.19
	}
}

includeLibs.tx_extbase_dispatcher =
EXT:extbase/class.tx_extbase_dispatcher.php



eajax = PAGE
eajax {
		  typeNum = 32146
		  10 = USER_INT
		  10 {
			  userFunc = tx_extbase_dispatcher->dispatch
			  pluginName = Main
			  extensionName = MrEtikett
			  controller = Label
			  switchableControllerActions {
				  1 {
				  	controller = Theme
				  	actions = index,showbyparent
				  }
				  2 {
				  	controller = Label
				  	actions =
showbytheme,showbyuid,showtools,showpreviewwithtools,fileupload,imagescala,paperinfo,pdfpreviewfromsession
				  }
				  3 {
				  	controller = Basket
				  	actions =
index,getpreviewimage,addressdelivery,showbasketcomplete,sendorder,showdelivery
				  }
				  4 {
				  	controller = FrontendUser
				  	actions = new
				  }
				  5 {
				  	controller = Order
				  	actions = publish
				  }
				  6 {
				  	controller = Restricted
				  	actions = showorder
				  }
				  7 {
				  	controller = Individual
				  	actions = index
				  }
			  }
			  settings =< plugin.tx_mretikett_pi1.settings
			  persistence =< plugin.tx_mretikett_pi1.persistence
			  view =< plugin.tx_mretikett_pi1.view
	  }
	   
	  config {
		  disableAllHeaderCode = 1
		  additionalHeaders = Content-type:text/html|Cache-Control: no-cache,
must-revalidate, max-age=0|Expires: Mon, 2 Jan 2006 01:00:00 GMT|Pragma:
no-cache
		  xhtml_cleaning = 0
		  admPanel = 0
		  no_cache = 1
	  }
  }

json = PAGE
json {
		  typeNum = 32185
		  10 = USER_INT
		  10 {
			  userFunc = tx_extbase_dispatcher->dispatch
			  pluginName = Main
			  extensionName = MrEtikett
			  controller = Label
			  switchableControllerActions {
				  1 {
				  	controller = Label
				  	actions = showtools,getimagetext,fileupload
				  }
				  2 {
				  	controller = Session
				  	actions = set, removelabel, login
				  }
				  3 {
				  	controller = Basket
				  	actions = getpreviewimage
				  }
				  4 {
				  	controller = FrontendUser
				  	actions = create,activate
				  }
				  5 {
				  	controller = Restricted
				  	actions = login,index,update,resetpw
				  }
				  7 {
				  	controller = Individual
				  	actions = index
				  }
				  
			  }
			  settings =< plugin.tx_mretikett_pi1.settings
			  persistence =< plugin.tx_mretikett_pi1.persistence
			  view =< plugin.tx_mretikett_pi1.view
	  }
	  config {
		  disableAllHeaderCode = 1
		  additionalHeaders = Content-type:application/json|Cache-Control:
no-cache, must-revalidate, max-age=0|Expires: Mon, 2 Jan 2006 01:00:00
GMT|Pragma: no-cache
		  xhtml_cleaning = 0
		  admPanel = 0
		  no_cache = 1
	  }
  }

apdf = PAGE
apdf {
		  typeNum = 33000
		  10 = USER_INT
		  10 {
			  userFunc = tx_extbase_dispatcher->dispatch
			  pluginName = Main
			  extensionName = MrEtikett
			  controller = Label
			  switchableControllerActions {
				  1 {
				  	controller = Label
				  	actions = pdfpreviewfromsession
				  }
			  }
			  settings =< plugin.tx_mretikett_pi1.settings
			  persistence =< plugin.tx_mretikett_pi1.persistence
			  view =< plugin.tx_mretikett_pi1.view
	  }
	  config {
		  disableAllHeaderCode = 1
		  additionalHeaders = Content-type:application/pdf
		  xhtml_cleaning = 0
		  admPanel = 0
		  no_cache = 1
	  }
  }



More information about the TYPO3-project-typo3v4mvc mailing list