Estás viendo el sitio como Invitado. Para poder participar en este sitio
y obtendrás privilegios adicionales, acceso a otras áreas y mucho mas.
$texts = array(...)
<form action="{xen:link index/testMultipleWrite}" method="post" class="Form">
<xen:foreach loop="$texts" value="$text" i="$i">
<dl class="ctrlUnit">
<label for="ctrl_custom_title">{xen:phrase text}:</label>
<select name="text" class="textCtrl OptOut" id="ctrl_style_id" autofocus="on">
<xen:foreach loop="$texts" value="$text" i="$i">
<option value="{$text}">{$text}</option>
</xen:foreach>
</optgroup>
</select>
</dl>
<br/>
</xen:foreach>
<dl class="ctrlUnit submitUnit">
<dt></dt>
<dd><input type="submit" value="{xen:phrase save}" class="button primary" accesskey="s" /></dd>
</dl>
<input type="hidden" name="_xfToken" value="{$visitor.csrf_token_page}" />
</form>
$visitor = XenForo_Visitor::getInstance();
if (!$visitor->get('user_id')) {
return $this->responseError(new XenForo_Phrase('cannot_edit_arena'));
}
$userId = XenForo_Visitor::getUserId();
foreach ($tests as $test){
$test = $this->_input->filter(array(
'user_id' => XenForo_Input::UINT,
'text' => XenForo_Input::STRING,
));
$writer = XenForo_DataWriter::create('XenForo_DataWriter_Test');
$writer->setExistingData($visitor->get('user_id'));
$writer->set('text', $text);
$writer->save();
}
return...
[LIST]
[*]The existing data required by the data writer could not be found.
[*]The field 'numero' was not recognised.
[/LIST]