[TYPO3-mvc] Action "create" is not allowed?
David Greiner
davidgreiner at gmx.net
Fri Oct 21 15:58:55 CEST 2011
Hey!
In my Fluid-Template I use the following form.
----------------
<f:form action="create" method="post" name="newTimeaccountcz"
object="{newTimeaccountcz}">
<f:form.hidden name="status" property="status" value="1" />
<f:form.submit value="Zeit starten" />
</f:form>
----------------
By clicking the submit-button I get this error:
#1313855173: The action "create" (controller "Timeaccountcz") is not allowed
by this plugin. Please check Tx_Extbase_Utility_Extension::configurePlugin()
in your ext_localconf.php.
My ext_localconf.php:
----------------
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
Tx_Extbase_Utility_Extension::configurePlugin(
$_EXTKEY,
'Timetracking',
array(
'Timeaccountcz' => 'list, edit, update, new, create,
statistic',
),
// non-cacheable actions
array(
'Timeaccountcz' => 'list, edit, update, new, create,
statistic',
)
);
?>
----------------
And my createAction() in the TimeaccountczController.php:
----------------
/**
* action create
*
* @param $newTimeaccountcz
* @return void
*/
public function createAction(Tx_DgTimetrack_Domain_Model_Timeaccountcz
$newTimeaccountcz) {
$newTimeaccountcz->setWorktime(time());
$this->timeaccountczRepository->add($newTimeaccountcz);
$this->flashMessageContainer->add('Your new Timeaccountcz was
created.');
$this->redirect('list');
}
----------------
Where is the problem? What can I do?
Greets, David.
More information about the TYPO3-project-typo3v4mvc
mailing list