[TYPO3-mvc] Action "create" is not allowed?

Henjo Hoeksma me at henjohoeksma.nl
Fri Oct 21 16:44:27 CEST 2011


Hi David,

your code looks fine. Did you add a flexform plugin? It could be that you
haven't add the action there.

BTW Please stick to the coding guidelines and use full descriptive names
including the right CamelCase usages!

Kind regards,

Henjo

Problems are small because we learned how to deal with them.
Problems are big because we need to learn how to deal with them.


On Fri, Oct 21, 2011 at 15:58, David Greiner <davidgreiner at gmx.net> wrote:

> 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.
>
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>


More information about the TYPO3-project-typo3v4mvc mailing list