cakephp-1.3 > FormHelper :: create()
FormHelper
- __dateTimeSelected
- __generateOptions
- __secure
- __selectOptions
- _extractOption
- _initInputField
- _inputLabel
- _isRequiredField
- _name
- &_introspectModel
- button
- checkbox
- create
- dateTime
- day
- end
- error
- file
- hidden
- hour
- input
- inputs
- isFieldError
- label
- meridian
- minute
- month
- password
- radio
- secure
- select
- submit
- text
- textarea
- year
A
AclBase
AclBehavior
AclComponent
AclNode
AclShell
Aco
AcoAction
AjaxHelper
ApcEngine
ApiShell
App
AppController
AppController
AppHelper
AppHelper
AppModel
AppModel
Aro
AuthComponent
B
BakeShell
BakeTask
BehaviorCollection
C
Cache
CacheEngine
CacheHelper
CakeErrorController
CakeLog
CakeRoute
CakeSchema
CakeSession
CakeSocket
ClassRegistry
Component
Configure
ConnectionManager
ConsoleShell
ContainableBehavior
Controller
ControllerTask
CookieComponent
D
DataSource
DbAcl
DbAclSchema
DbConfigTask
DboMssql
DboMysql
DboMysqlBase
DboMysqli
DboOracle
DboPostgres
DboSource
DboSqlite
Debugger
Dispatcher
E
EmailComponent
ErrorHandler
ErrorHandler
ExtractTask
F
File
FileEngine
FileLog
FixtureTask
Folder
FormHelper
H
Helper
HtmlHelper
HttpSocket
I
I18n
I18nModel
i18nSchema
I18nShell
Inflector
IniAcl
J
JavascriptHelper
JqueryEngineHelper
JsBaseEngineHelper
JsHelper
L
L10n
M
MagicDb
MagicFileResource
MediaView
MemcacheEngine
Model
ModelBehavior
ModelTask
MootoolsEngineHelper
Multibyte
N
NumberHelper
O
Object
Overloadable
Overloadable
Overloadable2
Overloadable2
P
PagesController
PagesController
PaginatorHelper
Permission
PluginShortRoute
PluginTask
ProjectTask
PrototypeEngineHelper
R
RequestHandlerComponent
Router
RssHelper
S
Sanitize
Scaffold
ScaffoldView
SchemaShell
Security
SecurityComponent
SessionComponent
SessionHelper
SessionsSchema
Set
Shell
ShellDispatcher
String
T
TemplateTask
TestSuiteShell
TestTask
TextHelper
ThemeView
TimeHelper
TranslateBehavior
TreeBehavior
V
Validation
View
ViewTask
X
XcacheEngine
Xml
XmlElement
XmlHelper
XmlManager
XmlNode
XmlTextNode
create
line:193 at
/cake/libs/view/helpers/form.php
Returns an HTML FORM element.
Method
(string)
create
($model = null, $options = array())
Parameters
Parameter | Type | Comment | Default |
---|---|---|---|
$model | string | optional The model object which the form is being defined for | null |
$options | array | optional An array of html attributes and options. | array() |
Return
stringComment
Returns an HTML FORM element.
### Options:
- `type` Form method defaults to POST
- `action` The controller action the form submits to, (optional).
- `url` The url the form submits to. Can be a string or a url array. If you use 'url'
you should leave 'action' undefined.
- `default` Allows for the creation of Ajax forms. Set this to false to prevent the default event handler.
Will create an onsubmit attribute if it doesn't not exist. If it does, default action suppression
will be appended.
- `onsubmit` Used in conjunction with 'default' to create ajax forms.
- `inputDefaults` set the default $options for FormHelper::input(). Any options that would
be set when using FormHelper::input() can be set here. Options set with `inputDefaults`
can be overridden when calling input()
- `encoding` Set the accept-charset encoding for the form. Defaults to `Configure::read('App.encoding')`
@access public
@param string $model The model object which the form is being defined for
@param array $options An array of html attributes and options.
@return string An formatted opening FORM tag.
@link http://book.cakephp.org/view/1384/Creating-Forms
### Options:
- `type` Form method defaults to POST
- `action` The controller action the form submits to, (optional).
- `url` The url the form submits to. Can be a string or a url array. If you use 'url'
you should leave 'action' undefined.
- `default` Allows for the creation of Ajax forms. Set this to false to prevent the default event handler.
Will create an onsubmit attribute if it doesn't not exist. If it does, default action suppression
will be appended.
- `onsubmit` Used in conjunction with 'default' to create ajax forms.
- `inputDefaults` set the default $options for FormHelper::input(). Any options that would
be set when using FormHelper::input() can be set here. Options set with `inputDefaults`
can be overridden when calling input()
- `encoding` Set the accept-charset encoding for the form. Defaults to `Configure::read('App.encoding')`
@access public
@param string $model The model object which the form is being defined for
@param array $options An array of html attributes and options.
@return string An formatted opening FORM tag.
@link http://book.cakephp.org/view/1384/Creating-Forms