[TYPO3-mvc] A little help with the fluid form tag?
Daniel Dimitrov
danielsd_bg at yahoo.fr
Tue May 11 12:47:56 CEST 2010
Hey guys,
I have a list view and I'm trying to embed a small search form in it.
My search form looks like this:
<f:form method="post" controller="List" action="search">
<label for="keyword">Keyword</label><br />
<f:form.textbox property="title" name="keyword" /><br />
<f:form.submit class="submit" value="Submit"/>
</f:form>
and is stored in Layouts/searchForm.html .
I've added this layout to my template with <f:layout name="searchForm" />
So far everything is fine! I see the search form. It has generated the
following html:
<form
action="index.php?id=47448&tx_bwshop_pi1[action]=search&tx_bwshop_pi1[controller]=List&cHash=e214c44ee6e77ad52cc6fa432cbb80eb"
method="post">
<input type="hidden" value="BwShop"
name="tx_bwshop_pi1[__referrer][extensionName]">
<input type="hidden" value="List"
name="tx_bwshop_pi1[__referrer][controllerName]">
<input type="hidden" value="index"
name="tx_bwshop_pi1[__referrer][actionName]">
<input type="hidden"
value="a:3:{s:7:"keyword";i:1;s:6:"action";i:1;s:10:"controller";i:1;}76a6d1e53f3ded6e219dea322e9e54809b263dbe"
name="tx_bwshop_pi1[__hmac]">
<label for="keyword">Keyword</label><br>
<input type="text" value="" name="tx_bwshop_pi1[keyword]"><br>
<input type="submit" value="Submit" name="" class="submit">
</form>
When I enter a value and click submit - the url changes to
index.php?id=47448&tx_bwshop_pi1[action]=search&tx_bwshop_pi1[controller]=List&cHash=e214c44ee6e77ad52cc6fa432cbb80eb
But the framework never goes in my searchAction function in the list
Controller.
What am I doing wrong? Do I have to make a new controller Search to handle
the form or can I continue using the list controller?
Thank you in advance!
Daniel
More information about the TYPO3-project-typo3v4mvc
mailing list