Create a file Hidden Tag.
App::Html()->hiddenTag(Name,[Value],[Option]);
Parameter |
Description |
---|---|
Name |
Name of the Input element |
Value |
Default Value |
Options |
HTML Attributes |
See bellow example:
echo App::Html()
->hiddenTag(
"data[CM][id]",
"5",
array(
"id"=>"customer_id"
)
);
/*
Return value
<input type="hidden" name="data[CM][id]" value="5" class="customer_id" />
*/