Page::setDefaultAction()

Page::setDefaultAction() -- Sets the default action invoked on page-form submit.

概要

require_once 'HTML/QuickForm/Page.php';

void HTML_QuickForm_Page::setDefaultAction (string $actionName)

説明

This is necessary as the user may just press Enter instead of clicking one of the named submit buttons and then no action name will be passed to the script.

This method adds a special hidden element to the form the contents of which will be used by Controller if no action name is found in the submitted values.

パラメータ

string $actionName

default action name

例外・エラー

throws no exceptions thrown

注意

この関数は、スタティックにコールする ことはできません。