如何驗證沒有模型名稱的表單數據。當我打印$this->data
時,我以下列數組格式獲取數據。但字段不包含型號名稱。如何驗證cakephp中沒有模型名稱的表單域
Array
(
[select_family] => Select
[select_cores] => Select
[select_color] => Select
[select_back_color] => Select
[select_panel] => Select
[select_design] => Select
[select_thickness] => Select
[select_edge] => Select
[quantity] =>
[save] => Save
)
在此先感謝。
提交的領域將不包含的型號名稱的表格,你必須指定適當的模型,然後寫驗證規則爲您現場 –
你就不能將這些輸入與某個模型相關聯? – arilia